feat: add assertions for JDK YearMonth type (#3141) #6
158 new problems found by Qodana Community for JVM
Community for JVM
158 new problems were found
Inspection name | Severity | Problems |
---|---|---|
'Optional' used as field or parameter type |
🔶 Warning | 65 |
Result of method call ignored |
🔶 Warning | 19 |
Optional.get() is called without isPresent() check |
🔶 Warning | 19 |
Nullability and data flow problems |
🔶 Warning | 9 |
Wrapper type may be primitive |
🔶 Warning | 8 |
AutoCloseable used without 'try'-with-resources |
🔶 Warning | 4 |
Suspicious 'Comparator.compare()' implementation |
🔶 Warning | 4 |
Redundant call to 'String.format()' |
🔶 Warning | 4 |
Suspicious collection method call |
🔶 Warning | 3 |
'equals()' called on itself |
🔶 Warning | 2 |
Unnecessary non-capturing group |
🔶 Warning | 2 |
'hashCode()' called on array |
🔶 Warning | 1 |
Class is exposed outside of its visibility scope |
🔶 Warning | 1 |
Constant values |
🔶 Warning | 1 |
Statement with empty body |
🔶 Warning | 1 |
Early loop exit in 'if' condition |
🔶 Warning | 1 |
Kotlin Maven Plugin misconfigured |
🔶 Warning | 1 |
Pointless boolean expression |
🔶 Warning | 1 |
Sorted collection with non-comparable elements |
🔶 Warning | 1 |
String concatenation as argument to 'StringBuilder.append()' call |
🔶 Warning | 1 |
Unused assignment |
🔶 Warning | 1 |
Bulk operation can be used instead of iteration |
🔶 Warning | 1 |
Constant values |
◽️ Notice | 8 |
💡 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/qodana-action@v2023.3.0
with:
upload-result: true
Contact Qodana team
Contact us at qodana-support@jetbrains.com
- 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
github-actions / Qodana Community for JVM
'hashCode()' called on array
Array passed to 'Objects.hash()' should be wrapped in 'Arrays.hashcode()'
Check warning on line 580 in assertj-core/src/main/java/org/assertj/core/internal/Files.java
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'Stream' used without 'try'-with-resources statement
Check warning on line 1587 in assertj-core/src/main/java/org/assertj/core/api/Assumptions.java
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'Unloaded' used without 'try'-with-resources statement
Check warning on line 223 in assertj-core/src/main/java/org/assertj/core/api/SoftProxies.java
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'Unloaded' used without 'try'-with-resources statement
Check warning on line 446 in assertj-core/src/main/java/org/assertj/core/internal/Paths.java
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'Stream' used without 'try'-with-resources statement
github-actions / Qodana Community for JVM
Class is exposed outside of its visibility scope
Class `ComparatorForPatterns` is exposed outside its defined visibility scope
github-actions / Qodana Community for JVM
Suspicious 'Comparator.compare()' implementation
Comparator never returns positive values
github-actions / Qodana Community for JVM
Suspicious 'Comparator.compare()' implementation
Comparator never returns positive values
github-actions / Qodana Community for JVM
Suspicious 'Comparator.compare()' implementation
Comparator never returns negative values
github-actions / Qodana Community for JVM
Suspicious 'Comparator.compare()' implementation
Comparator never returns positive values
github-actions / Qodana Community for JVM
Constant values
Value `from` is always 'null'
Check notice on line 72 in assertj-core/src/main/java/org/assertj/core/util/Files.java
github-actions / Qodana Community for JVM
Constant values
Value `recurse` is always 'true'
github-actions / Qodana Community for JVM
Constant values
Value `to` is always 'null'
github-actions / Qodana Community for JVM
Constant values
Value `actual` is always 'true'
github-actions / Qodana Community for JVM
Constant values
Value `actual` is always 'false'
Check notice on line 146 in assertj-core/src/main/java/org/assertj/core/internal/Throwables.java
github-actions / Qodana Community for JVM
Constant values
Value `rootCause` is always 'null'
github-actions / Qodana Community for JVM
Constant values
Value `actual` is always 'false'
github-actions / Qodana Community for JVM
Constant values
Value `actual` is always 'true'
Check warning on line 299 in assertj-core/src/main/java/org/assertj/core/internal/Throwables.java
github-actions / Qodana Community for JVM
Constant values
Condition `stackTrace != null` is always `true`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Immutable object is modified
github-actions / Qodana Community for JVM
Nullability and data flow problems
Immutable object is modified
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `getClass` may produce `NullPointerException`
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `spliterator` may produce `NullPointerException`
Check warning on line 426 in assertj-core/src/main/java/org/assertj/core/internal/Strings.java
github-actions / Qodana Community for JVM
Nullability and data flow problems
Argument `actual` might be null
Check warning on line 1444 in assertj-core/src/main/java/org/assertj/core/api/AbstractMapAssert.java
github-actions / Qodana Community for JVM
Nullability and data flow problems
Passing `null` argument to parameter annotated as @NotNull