-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<refactor>(command): refactor commands to categoies. #630
<refactor>(command): refactor commands to categoies. #630
Conversation
Sider has detected 2 warnings on analyzing the commit 739123a.
If the errors persist even after retrying, the following actions may resolve them:
If you still have problems, feel free to ask us via chat. 💬 You can turn off such notifications if unnecessary. |
commandToCommandInfo.put(s, constantCommandInfo); | ||
} | ||
} | ||
} catch (IllegalAccessException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Empty catch block. (view)
Rule | Severity |
---|---|
EmptyCatchBlockCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
commandToCommandInfo.put(s, constantCommandInfo); | ||
} | ||
} | ||
} catch (IllegalAccessException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Empty catch block. (view)
Rule | Severity |
---|---|
EmptyCatchBlockCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
commandToCommandInfo.put(s, constantCommandInfo); | ||
} | ||
} | ||
} catch (IllegalAccessException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Empty catch block. (view)
Rule | Severity |
---|---|
EmptyCatchBlockCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
commandToCommandInfo.put(s, constantCommandInfo); | ||
} | ||
} | ||
} catch (IllegalAccessException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Empty catch block. (view)
Rule | Severity |
---|---|
EmptyCatchBlockCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
commandToCommandInfo.put(s, constantCommandInfo); | ||
} | ||
} | ||
} catch (IllegalAccessException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Empty catch block. (view)
Rule | Severity |
---|---|
EmptyCatchBlockCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
} | ||
|
||
public static BasicCommand basicCommand = new BasicCommand(); | ||
public static ContractOpCommand contractOpCommand = new ContractOpCommand(); | ||
public static StatusQueryCommand statusQueryCommand = new StatusQueryCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
public static BasicCommand basicCommand = new BasicCommand(); | ||
public static ContractOpCommand contractOpCommand = new ContractOpCommand(); | ||
public static StatusQueryCommand statusQueryCommand = new StatusQueryCommand(); | ||
public static ConsensusOpCommand consensusOpCommand = new ConsensusOpCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
public static ContractOpCommand contractOpCommand = new ContractOpCommand(); | ||
public static StatusQueryCommand statusQueryCommand = new StatusQueryCommand(); | ||
public static ConsensusOpCommand consensusOpCommand = new ConsensusOpCommand(); | ||
public static BfsCommand bfsCommand = new BfsCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
public static StatusQueryCommand statusQueryCommand = new StatusQueryCommand(); | ||
public static ConsensusOpCommand consensusOpCommand = new ConsensusOpCommand(); | ||
public static BfsCommand bfsCommand = new BfsCommand(); | ||
public static CrudCommand crudCommand = new CrudCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
public static ConsensusOpCommand consensusOpCommand = new ConsensusOpCommand(); | ||
public static BfsCommand bfsCommand = new BfsCommand(); | ||
public static CrudCommand crudCommand = new CrudCommand(); | ||
public static GroupCommand groupCommand = new GroupCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
cfe97c7
to
1223d7d
Compare
import java.util.stream.Collectors; | ||
|
||
public class AccountOpCommand extends BasicCategoryCommand { | ||
protected static Map<String, CommandInfo> commandToCommandInfo = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
import java.util.Map; | ||
|
||
public class AuthOpCommand extends BasicCategoryCommand { | ||
protected static Map<String, CommandInfo> commandToCommandInfo = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
import java.util.stream.Collectors; | ||
|
||
public class BasicCommand extends BasicCategoryCommand { | ||
protected static Map<String, CommandInfo> commandToCommandInfo = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
import java.util.stream.Collectors; | ||
|
||
public class BfsCommand extends BasicCategoryCommand { | ||
protected static Map<String, CommandInfo> commandToCommandInfo = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
import java.util.Map; | ||
|
||
public class CollaborationOpCommand extends BasicCategoryCommand { | ||
protected static Map<String, CommandInfo> commandToCommandInfo = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PMD Java] Do not use non-final non-private static fields (view)
Rule | Ruleset | Priority |
---|---|---|
MutableStaticState |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
} | ||
|
||
public static List<String> BFS_COMMANDS = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Name 'BFS_COMMANDS' must match pattern '^[a-z][a-zA-Z0-9]*$'. (view)
Rule | Severity |
---|---|
StaticVariableNameCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
|
||
// TODO: Liquid collaboration service is not supported in FISCO BCOS 3.0.0 rc4 | ||
public static List<String> COLLABORATION_COMMANDS = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Name 'COLLABORATION_COMMANDS' must match pattern '^[a-z][a-zA-Z0-9]*$'. (view)
Rule | Severity |
---|---|
StaticVariableNameCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
} | ||
|
||
public static List<String> CONSENSUS_COMMANDS = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Name 'CONSENSUS_COMMANDS' must match pattern '^[a-z][a-zA-Z0-9]*$'. (view)
Rule | Severity |
---|---|
StaticVariableNameCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
} | ||
|
||
public static List<String> CRUD_COMMANDS = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Name 'CRUD_COMMANDS' must match pattern '^[a-z][a-zA-Z0-9]*$'. (view)
Rule | Severity |
---|---|
StaticVariableNameCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
} | ||
} | ||
|
||
// TODO: Liquid collaboration service is not supported in FISCO BCOS 3.0.0 rc4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] Comment matches to-do format 'TODO:'. (view)
Rule | Severity |
---|---|
TodoCommentCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
3dd341c
to
68100fc
Compare
68100fc
to
739123a
Compare
Kudos, SonarCloud Quality Gate passed! |
No description provided.