Skip to content
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

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

kyonRay
Copy link
Member

@kyonRay kyonRay commented Jan 18, 2022

No description provided.

@ghost
Copy link

ghost commented Jan 18, 2022

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 = "";
Copy link

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);
Copy link

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;
Copy link

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);
Copy link

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);
Copy link

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");
Copy link

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,
Copy link

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,
Copy link

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(
Copy link

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.

@kyonRay kyonRay force-pushed the feature-3.0.0-rc3 branch 2 times, most recently from 81bf07f to 66019d4 Compare January 18, 2022 12:15
contractAddress,
false,
false);
consoleInitializer.getGroupID(), contractName, contractAddress, false);
Copy link

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("")) {
Copy link

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(
Copy link

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.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -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);
Copy link

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.

@kyonRay kyonRay merged commit 7a9baca into FISCO-BCOS:feature-3.0.0-rc3 Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants