Improve plugin build & release process #18
679 new problems found by Qodana Community for JVM
Qodana Community for JVM
679 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Wrong package statement |
🔴 Failure | 79 |
Unnecessary unicode escape sequence |
🔶 Warning | 248 |
Unused import |
🔶 Warning | 116 |
@NotNull/@Nullable problems |
🔶 Warning | 66 |
Nullability and data flow problems |
🔶 Warning | 18 |
Deprecated API usage |
🔶 Warning | 16 |
Unstable API Usage |
🔶 Warning | 14 |
Unchecked warning |
🔶 Warning | 10 |
Incorrect string capitalization |
🔶 Warning | 7 |
Unused assignment |
🔶 Warning | 6 |
Default annotation parameter value |
🔶 Warning | 5 |
Field can be local |
🔶 Warning | 5 |
'size() == 0' can be replaced with 'isEmpty()' |
🔶 Warning | 3 |
Redundant 'if' statement |
🔶 Warning | 3 |
Redundant local variable |
🔶 Warning | 2 |
C-style array declaration |
🔶 Warning | 1 |
Redundant 'Collection.addAll()' call |
🔶 Warning | 1 |
Constant values |
🔶 Warning | 1 |
Field may be 'final' |
🔶 Warning | 1 |
Loop variable not updated inside loop |
🔶 Warning | 1 |
Unnecessary 'null' check before method call |
🔶 Warning | 1 |
Redundant type cast |
🔶 Warning | 1 |
String concatenation in loop |
🔶 Warning | 1 |
Duplicate branches in 'switch' |
◽️ Notice | 66 |
Method can be extracted |
◽️ Notice | 4 |
Commented out code |
◽️ Notice | 1 |
Constant values |
◽️ Notice | 1 |
Non-strict inequality '>=' or '<=' can be replaced with '==' |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
View the detailed Qodana report
To be able to view the detailed Qodana report, you can either:
- Register at Qodana Cloud and configure the action
- Use GitHub Code Scanning with Qodana
- Host Qodana report at GitHub Pages
- Inspect and use
qodana.sarif.json
(see the Qodana SARIF format for details)
To get *.log
files or any other Qodana artifacts, run the action with upload-result
option set to true
,
so that the action will upload the files as the job artifacts:
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: true
Contact Qodana team
Contact us at [email protected]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
Check warning on line 38 in src/main/gen/lexer/_OgnlLexer.java
github-actions / Qodana Community for JVM
C-style array declaration
Field `ZZ_LEXSTATE` has C-style array type declaration
github-actions / Qodana Community for JVM
Redundant 'Collection.addAll()' call
'addAll()' call can be replaced with parametrized constructor call
github-actions / Qodana Community for JVM
Commented out code
Commented out code (23 lines)
Check notice on line 639 in src/main/gen/parser/OgnlParser.java
github-actions / Qodana Community for JVM
Constant values
Value `r` is always 'true'
Check warning on line 296 in src/main/gen/parser/OgnlParser.java
github-actions / Qodana Community for JVM
Constant values
Condition `p` is always `false` when reached
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `size` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `setEnabled` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `getFirst` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Expression `elementConverterPair.second .getErrorMessage(getValue(), ConvertContextFactory.createConvert...` might evaluate to null but is returned by the method declared as @NotNull
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `resolve` might be null
Check warning on line 145 in src/main/java/com/intellij/struts2/graph/StrutsDataModel.java
github-actions / Qodana Community for JVM
Nullability and data flow problems
@Nullable method 'createGroupNodeRealizer' always returns a non-null value
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `getProject` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `psiClass.getName()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `setEnabled` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `getContextComponent` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Result of 'max' is the same as the first argument making the call meaningless
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `action.getXmlTag()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `action.getXmlTag()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `clazz.getName()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `result.getXmlTag()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `action.getXmlTag()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `action.getXmlTag()` might be null
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `path` might be null
Check warning on line 38 in src/main/java/com/intellij/struts2/dom/struts/Bean.java
github-actions / Qodana Community for JVM
Default annotation parameter value
Redundant default parameter value assignment
Check warning on line 38 in src/main/java/com/intellij/struts2/dom/struts/Bean.java
github-actions / Qodana Community for JVM
Default annotation parameter value
Redundant default parameter value assignment