Add some new configs #530
Add some new configs #530
CodeScene PR Check
โ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.13 (6.23 -> 6.10)
-
Declining Code Health: 3 findings(s) ๐ฉ
-
Affected Hotspots: 1 files(s) ๐ฅ
Details
๐ฉ Declining Code Health (highest to lowest):
- Bumpy Road Ahead Weapon.java: changeFireMode ๐ฅ
- Bumpy Road Ahead Weapon.java: incrementZoom ๐ฅ
- Bumpy Road Ahead Weapon.java: decrementZoom ๐ฅ
Annotations
Check notice on line 1 in src/main/java/com/paneedah/weaponlib/Weapon.java
codescene-delta-analysis / CodeScene Cloud Delta Analysis (next)
โน Getting worse: Lines of Code in a Single File
The lines of code increases from 1053 to 1059, improve code health by reducing it to 1000. The number of Lines of Code in a single file. More Lines of Code lowers the code health.
Check warning on line 1414 in src/main/java/com/paneedah/weaponlib/Weapon.java
codescene-delta-analysis / CodeScene Cloud Delta Analysis (next)
โ New issue: Bumpy Road Ahead
changeFireMode has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 1484 in src/main/java/com/paneedah/weaponlib/Weapon.java
codescene-delta-analysis / CodeScene Cloud Delta Analysis (next)
โ New issue: Bumpy Road Ahead
incrementZoom has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 1512 in src/main/java/com/paneedah/weaponlib/Weapon.java
codescene-delta-analysis / CodeScene Cloud Delta Analysis (next)
โ New issue: Bumpy Road Ahead
decrementZoom has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check notice on line 1 in src/main/java/com/paneedah/weaponlib/WeaponFireAspect.java
codescene-delta-analysis / CodeScene Cloud Delta Analysis (next)
โน Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 5.50 to 5.58, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.