Skip to content

Change back

Change back #44

GitHub Actions / Qodana Community for JVM completed Dec 25, 2023 in 0s

36 new problems found by Qodana Community for JVM

Community for JVM

36 new problems were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 19
Result of method call ignored 🔶 Warning 11
String concatenation in loop 🔶 Warning 4
Constant values 🔶 Warning 1
Suspicious collection method call 🔶 Warning 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:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. 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]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 15 in Magna/src/main/java/de/morigm/magna/listener/OnlyBreak.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e.getPlayer().getInventory().getItemInMainHand() != null` is always `true`

Check warning on line 46 in Magna/src/main/java/de/morigm/magna/listener/SignManipulator.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `getState` may produce `NullPointerException`

Check warning on line 31 in Magna-World/src/main/java/de/morigm/magnaworld/loader/WorldLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Dereference of `Main.getInstance().getWorldFolder().listFiles()` may produce `NullPointerException`

Check warning on line 34 in Magna/src/main/java/de/morigm/magna/config/WayPointConfig.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `getKeys` may produce `NullPointerException`

Check warning on line 29 in Magna/src/main/java/de/morigm/magna/commands/CMDHeal.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `getBaseValue` may produce `NullPointerException`

Check warning on line 12 in Magna/src/main/java/de/morigm/magna/listener/ColorSign.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `replaceAll` may produce `NullPointerException`

Check warning on line 79 in Magna/src/main/java/de/morigm/magna/config/PluginConfig.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `world` might be null

Check warning on line 61 in Magna/src/main/java/de/morigm/magna/api/config/FileConfig.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `config.getString(pos + ".name")` might be null

Check warning on line 23 in Magna-World/src/main/java/de/morigm/magnaworld/loader/WorldLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `name` might be null

Check warning on line 30 in Magna/src/main/java/de/morigm/magna/api/config/FileConfig.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `config.getString(name + ".world")` might be null

Check warning on line 26 in Magna/src/main/java/de/morigm/magna/loader/DeathBackLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `Main.getInstance().getDeathBackConfig().getConfig().getString(key + ".world")` might be null

Check warning on line 28 in Magna/src/main/java/de/morigm/magna/loader/WarpLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `Main.getInstance().getWarpConfig().getConfig().getString(w + ".world")` might be null

Check warning on line 48 in Magna/src/main/java/de/morigm/magna/api/command/PluginCommand.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `setExecutor` may produce `NullPointerException`

Check warning on line 25 in Magna/src/main/java/de/morigm/magna/listener/GuiController.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `equals` may produce `NullPointerException`

Check warning on line 18 in Magna-World/src/main/java/de/morigm/magnaworld/loader/WorldLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Dereference of `Main.getInstance().getWorldFolder().listFiles()` may produce `NullPointerException`

Check warning on line 100 in Magna/src/main/java/de/morigm/magna/listener/BlackList.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `kickPlayer` may produce `NullPointerException`

Check warning on line 29 in Magna/src/main/java/de/morigm/magna/loader/WayPointLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Argument `getConfig().getString(entry.getKey() + "." + entry.getValue() + ".world")` might be null

Check warning on line 28 in Magna/src/main/java/de/morigm/magna/commands/CMDIP.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `getHostString` may produce `NullPointerException`

Check warning on line 50 in Magna/src/main/java/de/morigm/magna/api/config/FileConfig.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `getType` may produce `NullPointerException`

Check warning on line 84 in Magna/src/main/java/de/morigm/magna/listener/BlackList.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Nullability and data flow problems

Method invocation `kickPlayer` may produce `NullPointerException`

Check warning on line 32 in Magna-World/src/main/java/de/morigm/magnaworld/loader/WorldLoader.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Result of method call ignored

Result of `File.delete()` is ignored

Check warning on line 43 in Magna-World/src/main/java/de/morigm/magnaworld/Main.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Result of method call ignored

Result of `File.mkdirs()` is ignored

Check warning on line 32 in Magna/src/main/java/de/morigm/magna/api/utility/FileGenerator.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Result of method call ignored

Result of `File.createNewFile()` is ignored

Check warning on line 79 in Magna/src/main/java/de/morigm/magna/api/utility/FileGenerator.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Result of method call ignored

Result of `File.delete()` is ignored

Check warning on line 19 in Magna/src/main/java/de/morigm/magna/api/utility/FileGenerator.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Result of method call ignored

Result of `File.createNewFile()` is ignored