sonatype-lift[bot] commented on code in PR #1966:
URL: https://github.com/apache/zookeeper/pull/1966#discussion_r1116371322
##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java:
##########
@@ -45,18 +45,17 @@ public interface Command {
*/
String getPrimaryName();
- /**
- * A string documenting this command (e.g., what it does, any arguments it
- * takes).
- */
- String getDoc();
-
/**
* @return true if the command requires an active ZooKeeperServer or a
* synced peer in order to resolve
*/
boolean isServerRequired();
+ /**
+ * @return AuthRequest associated to the command. Null means auth check is
not required.
Review Comment:
<picture><img alt="38% of developers fix this issue"
src="https://lift.sonatype.com/api/commentimage/fixrate/38/display.svg"></picture>
<b>*[MissingSummary](https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment):</b>*
A summary fragment is required; consider using the value of the @return block
as a summary fragment instead.
---
```suggestion
*Returns authRequest associated to the command. Null means auth check
is not required.
```
---
<details><summary>âšī¸ Expand to see all <b>@sonatype-lift</b>
commands</summary>
You can reply with the following commands. For example, reply with
***@sonatype-lift ignoreall*** to leave out all findings.
| **Command** | **Usage** |
| ------------- | ------------- |
| `@sonatype-lift ignore` | Leave out the above finding from this PR |
| `@sonatype-lift ignoreall` | Leave out all the existing findings from this
PR |
| `@sonatype-lift exclude <file\|issue\|path\|tool>` | Exclude specified
`file\|issue\|path\|tool` from Lift findings by updating your config.toml file |
**Note:** When talking to LiftBot, you need to **refresh** the page to see
its response.
<sub>[Click here](https://github.com/apps/sonatype-lift/installations/new)
to add LiftBot to another repo.</sub></details>
---
<b>Help us improve LIFT! (<i>Sonatype LiftBot external survey</i>)</b>
Was this a good recommendation for you? <sub><small>Answering this survey
will not impact your Lift settings.</small></sub>
[â[đ Not
relevant](https://www.sonatype.com/lift-comment-rating?comment=405524795&lift_comment_rating=1)
â] - [â[đ Won't
fix](https://www.sonatype.com/lift-comment-rating?comment=405524795&lift_comment_rating=2)
â] - [â[đ Not critical, will
fix](https://www.sonatype.com/lift-comment-rating?comment=405524795&lift_comment_rating=3)
â] - [â[đ Critical, will
fix](https://www.sonatype.com/lift-comment-rating?comment=405524795&lift_comment_rating=4)
â] - [â[đ Critical, fixing
now](https://www.sonatype.com/lift-comment-rating?comment=405524795&lift_comment_rating=5)
â]
##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java:
##########
@@ -45,18 +45,17 @@ public interface Command {
*/
String getPrimaryName();
- /**
- * A string documenting this command (e.g., what it does, any arguments it
- * takes).
- */
- String getDoc();
-
/**
* @return true if the command requires an active ZooKeeperServer or a
Review Comment:
<picture><img alt="38% of developers fix this issue"
src="https://lift.sonatype.com/api/commentimage/fixrate/38/display.svg"></picture>
<b>*[MissingSummary](https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment):</b>*
A summary fragment is required; consider using the value of the @return block
as a summary fragment instead.
---
```suggestion
*Returns true if the command requires an active ZooKeeperServer or a
```
---
<details><summary>âšī¸ Expand to see all <b>@sonatype-lift</b>
commands</summary>
You can reply with the following commands. For example, reply with
***@sonatype-lift ignoreall*** to leave out all findings.
| **Command** | **Usage** |
| ------------- | ------------- |
| `@sonatype-lift ignore` | Leave out the above finding from this PR |
| `@sonatype-lift ignoreall` | Leave out all the existing findings from this
PR |
| `@sonatype-lift exclude <file\|issue\|path\|tool>` | Exclude specified
`file\|issue\|path\|tool` from Lift findings by updating your config.toml file |
**Note:** When talking to LiftBot, you need to **refresh** the page to see
its response.
<sub>[Click here](https://github.com/apps/sonatype-lift/installations/new)
to add LiftBot to another repo.</sub></details>
---
<b>Help us improve LIFT! (<i>Sonatype LiftBot external survey</i>)</b>
Was this a good recommendation for you? <sub><small>Answering this survey
will not impact your Lift settings.</small></sub>
[â[đ Not
relevant](https://www.sonatype.com/lift-comment-rating?comment=405524819&lift_comment_rating=1)
â] - [â[đ Won't
fix](https://www.sonatype.com/lift-comment-rating?comment=405524819&lift_comment_rating=2)
â] - [â[đ Not critical, will
fix](https://www.sonatype.com/lift-comment-rating?comment=405524819&lift_comment_rating=3)
â] - [â[đ Critical, will
fix](https://www.sonatype.com/lift-comment-rating?comment=405524819&lift_comment_rating=4)
â] - [â[đ Critical, fixing
now](https://www.sonatype.com/lift-comment-rating?comment=405524819&lift_comment_rating=5)
â]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]