Skip to content

Use Kotlin

Use Kotlin #16

GitHub Actions / Qodana Community for JVM completed Jan 13, 2024 in 0s

436 new problems found by Qodana Community for JVM

Community for JVM

436 new problems were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 416
Result of method call ignored 🔶 Warning 11
String concatenation in loop 🔶 Warning 4
kotlin-test-junit could be used 🔶 Warning 2
Constant values 🔶 Warning 1
'Enum.values()' is recommended to be replaced by 'Enum.getEntries()' since Kotlin 1.9 🔶 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 15 in Magna/src/main/java/de/morigm/magna/listener/NoFallDamage.java

See this annotation in the file changed.

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

Nullability and data flow problems

Dereference of `Main.Companion.getInstance().getDefaultPluginConfig()` may produce `NullPointerException`

Check warning on line 15 in Magna/src/main/java/de/morigm/magna/commands/CMDOps.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 16 in Magna/src/main/java/de/morigm/magna/commands/CMDGetWarp.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 16 in Magna/src/main/java/de/morigm/magna/commands/CMDRemoveWarp.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 26 in Magna/src/main/java/de/morigm/magna/commands/CMDMagna_List.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` may produce `NullPointerException`

Check warning on line 9 in Magna/src/main/java/de/morigm/magna/api/manager/CommandSpyManager.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `getPlayerConfig` 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 22 in Magna/src/main/java/de/morigm/magna/commands/CMDSkull.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` may produce `NullPointerException`

Check warning on line 15 in Magna/src/main/java/de/morigm/magna/commands/CMDGetPos.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 24 in Magna/src/main/java/de/morigm/magna/commands/CMDKickAll.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` may produce `NullPointerException`

Check warning on line 19 in Magna/src/main/java/de/morigm/magna/commands/CMDMSGR.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` may produce `NullPointerException`

Check warning on line 54 in Magna/src/main/java/de/morigm/magna/loader/BlackListLoader.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `getBlackListConfig` may produce `NullPointerException`

Check warning on line 14 in Magna/src/main/java/de/morigm/magna/commands/CMDDay.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 17 in Magna-World/src/main/java/de/morigm/magnaworld/commands/MWIMPORT.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerCommandName` may produce `NullPointerException`

Check warning on line 21 in Magna-World/src/main/java/de/morigm/magnaworld/commands/MWIMPORT.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` may produce `NullPointerException`

Check warning on line 111 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 `getDefaultPluginConfig` may produce `NullPointerException`

Check warning on line 18 in Magna/src/main/java/de/morigm/magna/commands/CMDGroups.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerPermission` may produce `NullPointerException`

Check warning on line 13 in Magna/src/main/java/de/morigm/magna/api/manager/WayPointManager.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `getPermission` may produce `NullPointerException`

Check warning on line 16 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 `registerCommandName` may produce `NullPointerException`

Check warning on line 68 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

Method invocation `getConfig` may produce `NullPointerException`

Check warning on line 19 in Magna/src/main/java/de/morigm/magna/commands/CMDRemoveWarp.java

See this annotation in the file changed.

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

Nullability and data flow problems

Method invocation `registerTranslation` 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 157 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

Argument `Main.Companion.getInstance()` might be null