Kryptonite 2.1.0 #58
Kryptonite 2.1.0 #58
Quality Gate passed
Annotations
Check warning on line 135 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_ConfigItemGui.java
sonarqubecloud / SonarCloud Code Analysis
Use a primitive boolean expression here.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjyOfdiMw-kuvo0fSTt&open=AZjyOfdiMw-kuvo0fSTt&pullRequest=58
Check failure on line 213 in src/main/java/net/lewmc/kryptonite/config/LeafConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "async.async-pathfinding.enabled" 5 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqmhSXLPAV6RTyh0bH8&open=AZqmhSXLPAV6RTyh0bH8&pullRequest=58
Check warning on line 20 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_PaperWorld_5.java
sonarqubecloud / SonarCloud Code Analysis
Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx5NCLtV-kjpNfXgE0&open=AZjx5NCLtV-kjpNfXgE0&pullRequest=58
Check warning on line 197 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_ConfigItemGui.java
sonarqubecloud / SonarCloud Code Analysis
Complete the task associated to this TODO comment.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx9Ay1G3rrVRV6lJKj&open=AZjx9Ay1G3rrVRV6lJKj&pullRequest=58
Check warning on line 22 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_PaperWorld_3.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx5NDOtV-kjpNfXgE5&open=AZjx5NDOtV-kjpNfXgE5&pullRequest=58
Check warning on line 68 in src/main/java/net/lewmc/kryptonite/utils/LogUtil.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1JBlTU0eG3wvjv&open=AZjxxh1JBlTU0eG3wvjv&pullRequest=58
Check warning on line 20 in src/main/java/net/lewmc/kryptonite/utils/LogUtil.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1JBlTU0eG3wvjr&open=AZjxxh1JBlTU0eG3wvjr&pullRequest=58
Check failure on line 121 in src/main/java/net/lewmc/kryptonite/config/PaperWorldConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "the limit." 4 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqrZN2H2M1tEHgWTLyE&open=AZqrZN2H2M1tEHgWTLyE&pullRequest=58
Check warning on line 40 in src/main/java/net/lewmc/kryptonite/utils/config/IntegerConfigItem.java
sonarqubecloud / SonarCloud Code Analysis
Constructor has 9 parameters, which is greater than 7 authorized.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjyOfb_Mw-kuvo0fSTq&open=AZjyOfb_Mw-kuvo0fSTq&pullRequest=58
Check failure on line 153 in src/main/java/net/lewmc/kryptonite/config/LeafConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Async Entity Tracker Queue Size" 3 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZlTsKZ5KLOmRGnf6aqh&open=AZlTsKZ5KLOmRGnf6aqh&pullRequest=58
Check warning on line 13 in src/main/java/net/lewmc/kryptonite/utils/config/ConfigCollection.java
sonarqubecloud / SonarCloud Code Analysis
Provide the parametrized type for this generic.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx2Oc1FWoXVOxZSnCH&open=AZjx2Oc1FWoXVOxZSnCH&pullRequest=58
Check failure on line 117 in src/main/java/net/lewmc/kryptonite/config/BukkitConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "How often (in ticks) the server attempts to spawn" 6 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqjoKFfGWVyRDtT6WvV&open=AZqjoKFfGWVyRDtT6WvV&pullRequest=58
Check warning on line 21 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_PaperWorld_3.java
sonarqubecloud / SonarCloud Code Analysis
Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx5NDOtV-kjpNfXgE4&open=AZjx5NDOtV-kjpNfXgE4&pullRequest=58
Check warning on line 37 in src/main/java/net/lewmc/kryptonite/Kryptonite.java
sonarqubecloud / SonarCloud Code Analysis
Make foundryConfig a static final constant or non-public and provide accessors if needed.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1kBlTU0eG3wvjz&open=AZjxxh1kBlTU0eG3wvjz&pullRequest=58
Check warning on line 92 in src/main/java/net/lewmc/kryptonite/utils/LogUtil.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1JBlTU0eG3wvjx&open=AZjxxh1JBlTU0eG3wvjx&pullRequest=58
Check warning on line 80 in src/main/java/net/lewmc/kryptonite/utils/LogUtil.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1JBlTU0eG3wvjw&open=AZjxxh1JBlTU0eG3wvjw&pullRequest=58
Check warning on line 173 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_ConfigItemGui.java
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx9Ay1G3rrVRV6lJKe&open=AZjx9Ay1G3rrVRV6lJKe&pullRequest=58
Check warning on line 13 in src/main/java/net/lewmc/kryptonite/kos/config/PaperWorld.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx5NKWtV-kjpNfXgFT&open=AZjx5NKWtV-kjpNfXgFT&pullRequest=58
Check warning on line 24 in src/main/java/net/lewmc/kryptonite/utils/LogUtil.java
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjxxh1JBlTU0eG3wvjs&open=AZjxxh1JBlTU0eG3wvjs&pullRequest=58
Check failure on line 219 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_ConfigItemGui.java
sonarqubecloud / SonarCloud Code Analysis
Move the update of "index" into this loop's update clause.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqhVqaHBrpIeDYqcVuw&open=AZqhVqaHBrpIeDYqcVuw&pullRequest=58
Check warning on line 13 in src/main/java/net/lewmc/kryptonite/utils/config/ConfigCollection.java
sonarqubecloud / SonarCloud Code Analysis
The type of "values" should be an interface such as "Map" rather than the implementation "LinkedHashMap".
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqjoKHuGWVyRDtT6Wvg&open=AZqjoKHuGWVyRDtT6Wvg&pullRequest=58
Check failure on line 151 in src/main/java/net/lewmc/kryptonite/kos/gui/KOS_ConfigItemGui.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 40 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjx9Ay1G3rrVRV6lJKh&open=AZjx9Ay1G3rrVRV6lJKh&pullRequest=58
Check failure on line 80 in src/main/java/net/lewmc/kryptonite/config/PaperWorldConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "loaded per chunk. A value of -1 disables the limit." 3 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqrZN2G2M1tEHgWTLyA&open=AZqrZN2G2M1tEHgWTLyA&pullRequest=58
Check warning on line 34 in src/main/java/net/lewmc/kryptonite/utils/config/StringConfigItem.java
sonarqubecloud / SonarCloud Code Analysis
Constructor has 8 parameters, which is greater than 7 authorized.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZjyOfcRMw-kuvo0fSTs&open=AZjyOfcRMw-kuvo0fSTs&pullRequest=58
Check failure on line 43 in src/main/java/net/lewmc/kryptonite/config/BukkitConfig.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "numbers, but survival worlds may be less realistic." 7 times.
See more on https://sonarcloud.io/project/issues?id=LewMC_Kryptonite&issues=AZqjoKFfGWVyRDtT6WvU&open=AZqjoKFfGWVyRDtT6WvU&pullRequest=58