| Rule |
Violation |
Priority |
Line |
| ExcessiveImports |
A high number of imports (32) can indicate a high degree of coupling within an object; current threshold is 30. |
3 |
17–1242 |
| CouplingBetweenObjects |
A value of 23 may denote a high amount of coupling within the class (threshold: 20) |
3 |
17–1242 |
| GodClass |
Possible God Class (WMC=57, ATFD=30, TCC=7.692%) |
3 |
65 |
| TooManyFields |
Too many fields |
3 |
65–1242 |
| GuardLogStatement |
Logger calls should be surrounded by log level guards. |
2 |
360 |
| DoNotUseThreads |
To be compliant to J2EE, a webapp should not use any thread. |
3 |
386 |
| GuardLogStatement |
Logger calls should be surrounded by log level guards. |
2 |
401 |
| DoNotUseThreads |
To be compliant to J2EE, a webapp should not use any thread. |
3 |
406 |
| DoNotUseThreads |
To be compliant to J2EE, a webapp should not use any thread. |
3 |
410 |
| CognitiveComplexity |
The method 'createTasks(List<String>, String, Iterable<StressTestData>, ProgressTracker)' has a cognitive complexity of 36, current threshold is 15 |
3 |
495 |
| NPathComplexity |
The method 'createTasks(List<String>, String, Iterable<StressTestData>, ProgressTracker)' has an NPath complexity of 652, current threshold is 200 |
3 |
495 |
| AvoidInstantiatingObjectsInLoops |
Avoid instantiating new objects inside loops |
3 |
559–560 |
| DoNotUseThreads |
To be compliant to J2EE, a webapp should not use any thread. |
3 |
592 |
| DoNotUseThreads |
To be compliant to J2EE, a webapp should not use any thread. |
3 |
595 |
| AvoidSynchronizedAtMethodLevel |
Use block level locking rather than method level synchronization |
3 |
638 |
| LocalVariableCouldBeFinal |
Local variable 'id' could be declared final |
3 |
651 |
| AvoidSynchronizedStatement |
Use ReentrantLock rather than synchronization |
3 |
652–657 |
| LocalVariableCouldBeFinal |
Local variable 'duration' could be declared final |
3 |
668 |
| AvoidSynchronizedStatement |
Use ReentrantLock rather than synchronization |
3 |
669–674 |
| GuardLogStatement |
Logger calls should be surrounded by log level guards. |
2 |
704 |
| AvoidLiteralsInIfCondition |
Avoid using literals such as 4 in if statements |
3 |
831 |
| AvoidLiteralsInIfCondition |
Avoid using literals such as 10 in if statements |
3 |
904 |
| ArrayIsStoredDirectly |
The user-supplied array 'seed' is stored directly. |
3 |
966 |
| LocalVariableCouldBeFinal |
Local variable 'exitValue' could be declared final |
3 |
984 |
| LocalVariableCouldBeFinal |
Local variable 'millis' could be declared final |
3 |
985 |
| ReplaceJavaUtilDate |
Usage of java.util.Date should be replaced with classes from java.time |
3 |
1176 |