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>(command): add alter table command. #629

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

kyonRay
Copy link
Member

@kyonRay kyonRay commented Jun 9, 2022

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 9, 2022

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

@ghost
Copy link

ghost commented Jun 9, 2022

Sider has detected 1 warning on analyzing the commit 8b6b403.

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.

} catch (ConsoleMessageException e) {
System.out.println(e.getMessage());
logger.error(" message: {}, e:", e.getMessage(), e);
} catch (JSQLParserException | NullPointerException e) {
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 catching NullPointerException; consider removing the cause of the NPE. (view)

Rule Ruleset Priority
AvoidCatchingNPE Error Prone 3

References:

You can close this issue if no need to fix it. Learn more.

return true;
}

private void outputErrorMessageForTableCRUD(
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 'outputErrorMessageForTableCRUD(Table, String, Entry, String, int, String, Map)' 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.

@@ -171,7 +171,14 @@ public void printUsageInfo() {
"create",
"Create table by sql",
(consoleInitializer, params, pwd) ->
consoleInitializer.getPrecompiledFace().createTable(params[0], isWasm));
consoleInitializer.getPrecompiledFace().createTable(params[0]));
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.

}
} catch (ConsoleMessageException e) {
System.out.println(e.getMessage());
logger.error(" message: {}, e:", e.getMessage(), e);
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.

System.out.println(e.getMessage());
logger.error(" message: {}, e:", e.getMessage(), e);
} catch (JSQLParserException | NullPointerException e) {
logger.error(" message: {}, e:", e.getMessage(), e);
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.

e.getErrorCode(),
e.getMessage(),
null);
} catch (ClientException e) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[PMD Java] 'catch' branch identical to 'ContractException' branch (view)

Rule Ruleset Priority
IdenticalCatchBranches Code Style 3

References:

You can close this issue if no need to fix it. Learn more.

@@ -1077,6 +1084,7 @@ public void printUsageInfo() {
new ArrayList<>(
Arrays.asList(
CREATE.getCommand(),
ALTER.getCommand(),
Copy link

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.

@kyonRay kyonRay merged commit e68ba64 into FISCO-BCOS:release-3.0.0-rc4 Jun 9, 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.

3 participants