Update codeql.yml #2
Annotations
6 errors, 11 warnings, and 5 notices
Analyze (java-kotlin)
Unable to process command '##[set-env name=JAVA_HOME;]/opt/hostedtoolcache/jdk/17.0.9/x64' successfully.
|
Analyze (java-kotlin)
The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
|
Analyze (java-kotlin)
Unable to process command '##[set-env name=JAVA_HOME_17.0.9_x64;]/opt/hostedtoolcache/jdk/17.0.9/x64' successfully.
|
Analyze (java-kotlin)
The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
|
Analyze (java-kotlin)
Unable to process command '##[add-path]/opt/hostedtoolcache/jdk/17.0.9/x64/bin' successfully.
|
Analyze (java-kotlin)
The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
|
Analyze (java-kotlin)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v1.3.0. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Class is exposed outside of its visibility scope:
utility/src/main/java/com/dua3/utility/math/geometry/Segment2f.java#L11
Class `Path2fImpl` is not exported from module 'com.dua3.utility'
|
Class is exposed outside of its visibility scope:
utility/src/main/java/com/dua3/utility/math/geometry/Segment2f.java#L9
Class `Path2fImpl` is not exported from module 'com.dua3.utility'
|
Class is exposed outside of its visibility scope:
utility/src/main/java/com/dua3/utility/text/AnsiConverter.java#L95
Class `AnsiConverterImpl` is exposed outside its defined visibility scope
|
Statement with empty body:
utility/src/main/java/com/dua3/utility/text/RichText.java#L763
`for` statement has empty body
|
Statement with empty body:
utility/src/main/java/com/dua3/utility/xml/XmlUtil.java#L414
`if` statement has empty body
|
Statement with empty body:
utility/src/main/java/com/dua3/utility/text/TextUtil.java#L274
`for` statement has empty body
|
Magic Constant:
utility-swing/src/main/java/com/dua3/utility/swing/SwingFontUtil.java#L34
Should be one of: Font.PLAIN, Font.BOLD, Font.ITALIC or their combination
|
Mismatched query and update of collection:
utility-logging/utility-logging-slf4j/src/main/java/com/dua3/utility/logging/slf4j/LoggerSlf4j.java#L25
Contents of collection `markerLevelMap` are queried, but never updated
|
Suspicious 'System.arraycopy()' call:
utility/src/main/java/com/dua3/utility/lang/RingBuffer.java#L206
Source parameter type 'java.lang.Object\[\]' is not assignable to destination parameter `a` of type 'T\[\]'
|
Suspicious 'System.arraycopy()' call:
utility/src/main/java/com/dua3/utility/lang/RingBuffer.java#L207
Source parameter type 'java.lang.Object\[\]' is not assignable to destination parameter `a` of type 'T\[\]'
|
Constant values:
utility/src/main/java/com/dua3/utility/text/Style.java#L143
Value `TEXT_DECORATION_UNDERLINE_VALUE_NO_LINE` is always 'false'
|
Constant values:
utility/src/main/java/com/dua3/utility/text/Style.java#L148
Value `TEXT_DECORATION_LINE_THROUGH_VALUE_LINE` is always 'true'
|
Constant values:
utility/src/main/java/com/dua3/utility/text/Style.java#L139
Value `TEXT_DECORATION_UNDERLINE_VALUE_LINE` is always 'true'
|
Constant values:
utility/src/main/java/com/dua3/utility/text/Style.java#L152
Value `TEXT_DECORATION_LINE_THROUGH_VALUE_NO_LINE` is always 'false'
|
'if' statement with identical branches:
utility/src/main/java/com/dua3/utility/math/MathUtil.java#L282
Common parts with variables can be extracted from 'if'
|