-
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
<feat>(precompiled): add link feature, rm cns. #560
<feat>(precompiled): add link feature, rm cns. #560
Conversation
Sider has detected 1 warning on analyzing the commit eb7b35b.
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. |
@@ -530,19 +532,25 @@ protected void callContract( | |||
boolean sm = client.getCryptoSuite().getCryptoTypeConfig() == CryptoType.SM_TYPE; | |||
// load bin and abi | |||
if (abiAndBin == null) { | |||
String wasmAbiAddress = ""; |
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] The method 'callContract(AbiAndBin, String, String, String, List)' has a cognitive complexity of 22, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
contractAddress, | ||
false, | ||
false); | ||
consoleInitializer.getGroupID(), contractName, contractAddress, false); |
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] The method 'listAbi(ConsoleInitializer, String, String)' has a cognitive complexity of 20, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
return; | ||
} | ||
List<FileInfo> listResult; | ||
List<BfsInfo> listResult; |
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] The method 'changeDir(String, String)' has a cognitive complexity of 15, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
@@ -751,7 +729,7 @@ public void pwd(String pwd) { | |||
if (deep >= limit) return new Tuple2<>(0, 0); | |||
Integer dirCount = 0; | |||
Integer contractCount = 0; | |||
List<FileInfo> children = bfsService.list(absolutePath); | |||
List<BfsInfo> children = bfsService.list(absolutePath); |
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] The method 'travelBfs(String, String, int, int)' has a cognitive complexity of 17, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
2, | ||
true, | ||
false); | ||
-1); |
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] Avoid really long classes. (view)
Rule | Ruleset | Priority |
---|---|---|
ExcessiveClassLength |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
System.out.println( | ||
"* NodeEndPoint[Optional] -- The requested node information, the format is IP:Port, " | ||
+ "the list of all connected nodes can be obtained through getAvailableConnections"); | ||
System.out.println("Query all group peers"); |
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] This class has a bunch of public methods and attributes (view)
Rule | Ruleset | Priority |
---|---|---|
ExcessivePublicCount |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
@@ -559,16 +567,16 @@ protected void callContract( | |||
if (abiDefinition.isConstant()) { | |||
logger.debug( | |||
"sendCall request, params: {}, contractAddress: {}, contractName: {}, functionName:{}, paramSize: {}", | |||
callParams.toString(), | |||
this.client.isWASM() ? contractNameOrPath : contractAddress, | |||
callParams, |
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] Logger calls should be surrounded by log level guards. (view)
Rule | Ruleset | Priority |
---|---|---|
GuardLogStatement |
Best Practices | 2 |
References:
You can close this issue if no need to fix it. Learn more.
@@ -594,18 +602,15 @@ protected void callContract( | |||
else { | |||
logger.trace( | |||
"sendTransactionAndGetResponse request, params: {}, contractAddress: {}, contractName: {}, functionName: {}, paramSize:{}, abiDefinition: {}", | |||
callParams.toString(), | |||
this.client.isWASM() ? contractNameOrPath : contractAddress, | |||
callParams, |
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] Logger calls should be surrounded by log level guards. (view)
Rule | Ruleset | Priority |
---|---|---|
GuardLogStatement |
Best Practices | 2 |
References:
You can close this issue if no need to fix it. Learn more.
client.getGroup(), contractName, contractAddress, sm); | ||
abi = abiAndBin.getAbi(); | ||
} catch (CompileContractException e) { | ||
logger.warn( |
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] Logger calls should be surrounded by log level guards. (view)
Rule | Ruleset | Priority |
---|---|---|
GuardLogStatement |
Best Practices | 2 |
References:
You can close this issue if no need to fix it. Learn more.
81bf07f
to
66019d4
Compare
contractAddress, | ||
false, | ||
false); | ||
consoleInitializer.getGroupID(), contractName, contractAddress, false); |
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] The method 'listAbi(ConsoleInitializer, String, String)' has a cognitive complexity of 20, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
contractAddress, | ||
e.getMessage()); | ||
} | ||
if (abi.equals("")) { |
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] String literal expressions should be on the left side of an equals comparison. (view)
Rule | Severity |
---|---|
EqualsAvoidNullCheck |
info |
References:
You can close this issue if no need to fix it. Learn more.
client.getGroup(), contractName, contractAddress, sm); | ||
abi = abiAndBin.getAbi(); | ||
} catch (CompileContractException e) { | ||
logger.error( |
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] Logger calls should be surrounded by log level guards. (view)
Rule | Ruleset | Priority |
---|---|---|
GuardLogStatement |
Best Practices | 2 |
References:
You can close this issue if no need to fix it. Learn more.
66019d4
to
52a9146
Compare
52a9146
to
eb7b35b
Compare
Kudos, SonarCloud Quality Gate passed! |
@@ -751,7 +729,7 @@ public void pwd(String pwd) { | |||
if (deep >= limit) return new Tuple2<>(0, 0); | |||
Integer dirCount = 0; | |||
Integer contractCount = 0; | |||
List<FileInfo> children = bfsService.list(absolutePath); | |||
List<BfsInfo> children = bfsService.list(absolutePath); |
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] The method 'travelBfs(String, String, int, int)' has a cognitive complexity of 17, current threshold is 15 (view)
Rule | Ruleset | Priority |
---|---|---|
CognitiveComplexity |
Design | 3 |
References:
You can close this issue if no need to fix it. Learn more.
No description provided.