Repository navigation
Some big rendering changes - #628
CodeScene PR Check
Quality Gate Passed
Code Health Improved
(1 files improve in Code Health)
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
View Improvements
| File | Code Health Impact | Categories Improved |
|---|---|---|
| ClientEventHandler.java | 6.37 → 6.46 | Complex Method, Complex Conditional, Overall Code Complexity |
Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Details
✅ Improving Code Health:
- Overall Code Complexity ClientEventHandler.java
- Complex Conditional ClientEventHandler.java: update
- Complex Method ClientEventHandler.java: update
Annotations
Check notice on line 248 in src/main/java/com/paneedah/weaponlib/ClientEventHandler.java
codescene-delta-analysis / CodeScene Code Health Review (next)
✅ Getting better: Complex Method
update decreases in cyclomatic complexity from 14 to 13, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check notice on line 248 in src/main/java/com/paneedah/weaponlib/ClientEventHandler.java
codescene-delta-analysis / CodeScene Code Health Review (next)
✅ Getting better: Complex Conditional
update decreases from 1 complex conditionals with 4 branches to 1 complex conditionals with 3 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.
Check notice on line 1 in src/main/java/com/paneedah/weaponlib/ClientEventHandler.java
codescene-delta-analysis / CodeScene Code Health Review (next)
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 5.19 to 5.14, 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.