PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 1

inez.model - io/github/magwas/inez/element/GetBridiElementRepresentationService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 20

inez.model - io/github/magwas/inez/element/GetBridiElementTypeIdService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 19

inez.model - io/github/magwas/inez/element/IsOfTypeService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 22

inez.model - io/github/magwas/inez/query/CreateBridisFromDefinitionService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 23

inez.model - io/github/magwas/inez/query/QueryProcessorService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 128
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 134

inez.model - io/github/magwas/inez/storage/BridiStoreEndToEndTest.java

Rule Violation Line
LocalVariableNamingConventions The local variable name 'CECILE_EATS_BANANA_REPR' doesn't match '[a-z][a-zA-Z0-9]*' 39
LocalVariableNamingConventions The local variable name 'CECILE_LOOKS_AT_BANANA_REPR' doesn't match '[a-z][a-zA-Z0-9]*' 40
LocalVariableNamingConventions The local variable name 'cecile_eats_banana' doesn't match '[a-z][a-zA-Z0-9]*' 41
LocalVariableNamingConventions The local variable name 'ceclie_looks_at_banana' doesn't match '[a-z][a-zA-Z0-9]*' 42
LocalVariableNamingConventions The local variable name 'looks_at_banana' doesn't match '[a-z][a-zA-Z0-9]*' 47
LocalVariableNamingConventions The local variable name 'looks_at' doesn't match '[a-z][a-zA-Z0-9]*' 49

Priority 2

inez.model - io/github/magwas/inez/element/GetBridiElementRepresentationService.java

Rule Violation Line
SystemPrintln Usage of System.out/err 19

inez.model - io/github/magwas/inez/element/IsOfTypeService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'id' 19

inez.model - io/github/magwas/inez/query/CreateBridisFromParserOutputService.java

Rule Violation Line
SystemPrintln Usage of System.out/err 54

inez.model - io/github/magwas/inez/query/QueryProcessorService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'candidates' 187

inez.model - io/github/magwas/inez/query/QueryProcessorEndToEndTest.java

Rule Violation Line
SystemPrintln Usage of System.out/err 64
SystemPrintln Usage of System.out/err 66

inez.parser - io/github/magwas/inez/parse/ThrowingErrorListener.java

Rule Violation Line
SystemPrintln Usage of System.out/err 32

Priority 3

inez.model - io/github/magwas/inez/Inez.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 1336

inez.model - io/github/magwas/inez/InezImpl.java

Rule Violation Line
CouplingBetweenObjects A value of 24 may denote a high amount of coupling within the class (threshold: 20) 1156
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 36
TooManyMethods This class has too many methods, consider refactoring it. 36156
AvoidFieldNameMatchingMethodName Field findAllByRepresentation has the same name as a method 68
AutowiredFields @Autowired fields naming conventions 74
AvoidFieldNameMatchingMethodName Field createSumti has the same name as a method 80
DelegateMethods Delegate methods should only delegate 95
DelegateMethods Delegate methods should only delegate 100

inez.model - io/github/magwas/inez/InezPlugin.java

Rule Violation Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3

inez.model - io/github/magwas/inez/element/BridiElement.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field isInstance has the same name as a method 52
LinguisticNaming Linguistics Antipattern - The field 'isInstance' indicates linguistically it is a boolean, but it is 'IsInstanceService' 52
AutowiredFields @Autowired fields naming conventions 58
LinguisticNaming Linguistics Antipattern - The field 'isOfType' indicates linguistically it is a boolean, but it is 'IsOfTypeService' 61
DelegateMethods Delegate methods should only delegate 69
DelegateMethods Delegate methods should only delegate 109
DelegateMethods Delegate methods should only delegate 118

inez.model - io/github/magwas/inez/element/BridiElementFactory.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 11

inez.model - io/github/magwas/inez/element/BridiElementSystemInitializationService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 14

inez.model - io/github/magwas/inez/element/CreateBridiElementService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 25
LinguisticNaming Linguistics Antipattern - The variable 'isAId' indicates linguistically it is a boolean, but it is 'String' 39

inez.model - io/github/magwas/inez/element/GetBridiElementChildrenService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 21

inez.model - io/github/magwas/inez/element/GetBridiElementReferencesService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 14

inez.model - io/github/magwas/inez/element/GetBridiElementTypeService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 12

inez.model - io/github/magwas/inez/functions/Save.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 20

inez.model - io/github/magwas/inez/query/BridiFunction.java

Rule Violation Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 9

inez.model - io/github/magwas/inez/query/CreateBridisFromDefinitionService.java

Rule Violation Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 31

inez.model - io/github/magwas/inez/query/CreateBridisFromQueryService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 27

inez.model - io/github/magwas/inez/query/GetServiceByNameService.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 16
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exception BeansException in its 'throws' clause 21

inez.model - io/github/magwas/inez/query/QueryProcessorService.java

Rule Violation Line
CyclomaticComplexity The class 'QueryProcessorService' has a total cyclomatic complexity of 28 (highest 7). 33
AutowiredFields @Autowired fields naming conventions 54
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `this::apply` 57

inez.model - io/github/magwas/inez/storage/AddReferencesService.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 23

inez.model - io/github/magwas/inez/storage/BridiStoreChangeListenersService.java

Rule Violation Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 11

inez.model - io/github/magwas/inez/storage/CreateBridiFromSumtiService.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 25

inez.model - io/github/magwas/inez/InezProblemsTest.java

Rule Violation Line
JUnit5TestShouldBePackagePrivate JUnit 5 tests should be package-private. 11

inez.model - io/github/magwas/inez/element/BridiElementEndToEndTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 53
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 98

inez.model - io/github/magwas/inez/element/BridiElementSystemInitializationServiceTest.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 14115

inez.model - io/github/magwas/inez/element/CreateBridiElementServiceTest.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 20127
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 94

inez.model - io/github/magwas/inez/element/IsInstanceServiceTest.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The field 'isInstance' indicates linguistically it is a boolean, but it is 'IsInstanceService' 15

inez.model - io/github/magwas/inez/query/GetServiceByNameServiceStub.java

Rule Violation Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exception BeansException in its 'throws' clause 11

inez.model - io/github/magwas/inez/query/QueryProcessorEndToEndTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 40

inez.model - io/github/magwas/inez/query/QueryProcessorTest.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 19100

inez.model - io/github/magwas/inez/storage/AddReferencesServiceTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 40

inez.model - io/github/magwas/inez/storage/AddReferencesTest.java

Rule Violation Line
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 20

inez.model - io/github/magwas/inez/storage/BridiStoreEndToEndTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 33

inez.model - io/github/magwas/inez/storage/RemoveReferencesTest.java

Rule Violation Line
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 22

inez.parser - io/github/magwas/inez/parse/ParseTextService.java

Rule Violation Line
CyclomaticComplexity The method 'compileBridiFromTree(BridiContext)' has a cyclomatic complexity of 10. 37
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 40
AvoidLiteralsInIfCondition Avoid using literals such as "{[" in if statements 47
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 47
AvoidLiteralsInIfCondition Avoid using literals such as "]}" in if statements 48
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 48
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 48
AssignmentInOperand Avoid assignment to childIndex in operand 57
AssignmentInOperand Avoid assignment to childIndex in operand 61
AssignmentInOperand Avoid assignment to childIndex in operand 66

inez.parser - io/github/magwas/inez/parse/ThrowingErrorListener.java

Rule Violation Line
ImmutableField Field 'input' may be declared final 13

Priority 4

inez.model - io/github/magwas/inez/Inez.java

Rule Violation Line
ShortClassName Avoid short class names like Inez 13

inez.model - io/github/magwas/inez/functions/Save.java

Rule Violation Line
ShortClassName Avoid short class names like Save 17

Files

inez.model - io/github/magwas/inez/Inez.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Inez 4 13
TooManyMethods This class has too many methods, consider refactoring it. 3 1336

inez.model - io/github/magwas/inez/InezImpl.java

Rule Violation Priority Line
CouplingBetweenObjects A value of 24 may denote a high amount of coupling within the class (threshold: 20) 3 1156
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 3 36
TooManyMethods This class has too many methods, consider refactoring it. 3 36156
AvoidFieldNameMatchingMethodName Field findAllByRepresentation has the same name as a method 3 68
AutowiredFields @Autowired fields naming conventions 3 74
AvoidFieldNameMatchingMethodName Field createSumti has the same name as a method 3 80
DelegateMethods Delegate methods should only delegate 3 95
DelegateMethods Delegate methods should only delegate 3 100

inez.model - io/github/magwas/inez/InezPlugin.java

Rule Violation Priority Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3 3

inez.model - io/github/magwas/inez/element/BridiElement.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field isInstance has the same name as a method 3 52
LinguisticNaming Linguistics Antipattern - The field 'isInstance' indicates linguistically it is a boolean, but it is 'IsInstanceService' 3 52
AutowiredFields @Autowired fields naming conventions 3 58
LinguisticNaming Linguistics Antipattern - The field 'isOfType' indicates linguistically it is a boolean, but it is 'IsOfTypeService' 3 61
DelegateMethods Delegate methods should only delegate 3 69
DelegateMethods Delegate methods should only delegate 3 109
DelegateMethods Delegate methods should only delegate 3 118

inez.model - io/github/magwas/inez/element/BridiElementFactory.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 11

inez.model - io/github/magwas/inez/element/BridiElementSystemInitializationService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 14

inez.model - io/github/magwas/inez/element/CreateBridiElementService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 25
LinguisticNaming Linguistics Antipattern - The variable 'isAId' indicates linguistically it is a boolean, but it is 'String' 3 39

inez.model - io/github/magwas/inez/element/GetBridiElementChildrenService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 21

inez.model - io/github/magwas/inez/element/GetBridiElementReferencesService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 14

inez.model - io/github/magwas/inez/element/GetBridiElementRepresentationService.java

Rule Violation Priority Line
SystemPrintln Usage of System.out/err 2 19
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 20

inez.model - io/github/magwas/inez/element/GetBridiElementTypeIdService.java

Rule Violation Priority Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 19

inez.model - io/github/magwas/inez/element/GetBridiElementTypeService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 12

inez.model - io/github/magwas/inez/element/IsOfTypeService.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'id' 2 19
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 22

inez.model - io/github/magwas/inez/functions/Save.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Save 4 17
AutowiredFields @Autowired fields naming conventions 3 20

inez.model - io/github/magwas/inez/query/BridiFunction.java

Rule Violation Priority Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3 9

inez.model - io/github/magwas/inez/query/CreateBridisFromDefinitionService.java

Rule Violation Priority Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 23
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 31

inez.model - io/github/magwas/inez/query/CreateBridisFromParserOutputService.java

Rule Violation Priority Line
SystemPrintln Usage of System.out/err 2 54

inez.model - io/github/magwas/inez/query/CreateBridisFromQueryService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 27

inez.model - io/github/magwas/inez/query/GetServiceByNameService.java

Rule Violation Priority Line
AutowiredFields @Autowired fields naming conventions 3 16
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exception BeansException in its 'throws' clause 3 21

inez.model - io/github/magwas/inez/query/QueryProcessorService.java

Rule Violation Priority Line
CyclomaticComplexity The class 'QueryProcessorService' has a total cyclomatic complexity of 28 (highest 7). 3 33
AutowiredFields @Autowired fields naming conventions 3 54
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `this::apply` 3 57
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 128
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 134
AvoidReassigningParameters Avoid reassigning parameters such as 'candidates' 2 187

inez.model - io/github/magwas/inez/storage/AddReferencesService.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 23

inez.model - io/github/magwas/inez/storage/BridiStoreChangeListenersService.java

Rule Violation Priority Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3 11

inez.model - io/github/magwas/inez/storage/CreateBridiFromSumtiService.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 25

inez.model - io/github/magwas/inez/InezProblemsTest.java

Rule Violation Priority Line
JUnit5TestShouldBePackagePrivate JUnit 5 tests should be package-private. 3 11

inez.model - io/github/magwas/inez/element/BridiElementEndToEndTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 53
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 98

inez.model - io/github/magwas/inez/element/BridiElementSystemInitializationServiceTest.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 14115

inez.model - io/github/magwas/inez/element/CreateBridiElementServiceTest.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 20127
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 94

inez.model - io/github/magwas/inez/element/IsInstanceServiceTest.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The field 'isInstance' indicates linguistically it is a boolean, but it is 'IsInstanceService' 3 15

inez.model - io/github/magwas/inez/query/GetServiceByNameServiceStub.java

Rule Violation Priority Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exception BeansException in its 'throws' clause 3 11

inez.model - io/github/magwas/inez/query/QueryProcessorEndToEndTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 40
SystemPrintln Usage of System.out/err 2 64
SystemPrintln Usage of System.out/err 2 66

inez.model - io/github/magwas/inez/query/QueryProcessorTest.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 19100

inez.model - io/github/magwas/inez/storage/AddReferencesServiceTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 40

inez.model - io/github/magwas/inez/storage/AddReferencesTest.java

Rule Violation Priority Line
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 3 20

inez.model - io/github/magwas/inez/storage/BridiStoreEndToEndTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 33
LocalVariableNamingConventions The local variable name 'CECILE_EATS_BANANA_REPR' doesn't match '[a-z][a-zA-Z0-9]*' 1 39
LocalVariableNamingConventions The local variable name 'CECILE_LOOKS_AT_BANANA_REPR' doesn't match '[a-z][a-zA-Z0-9]*' 1 40
LocalVariableNamingConventions The local variable name 'cecile_eats_banana' doesn't match '[a-z][a-zA-Z0-9]*' 1 41
LocalVariableNamingConventions The local variable name 'ceclie_looks_at_banana' doesn't match '[a-z][a-zA-Z0-9]*' 1 42
LocalVariableNamingConventions The local variable name 'looks_at_banana' doesn't match '[a-z][a-zA-Z0-9]*' 1 47
LocalVariableNamingConventions The local variable name 'looks_at' doesn't match '[a-z][a-zA-Z0-9]*' 1 49

inez.model - io/github/magwas/inez/storage/RemoveReferencesTest.java

Rule Violation Priority Line
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 3 22

inez.parser - io/github/magwas/inez/parse/ParseTextService.java

Rule Violation Priority Line
CyclomaticComplexity The method 'compileBridiFromTree(BridiContext)' has a cyclomatic complexity of 10. 3 37
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 40
AvoidLiteralsInIfCondition Avoid using literals such as "{[" in if statements 3 47
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 47
AvoidLiteralsInIfCondition Avoid using literals such as "]}" in if statements 3 48
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 48
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 48
AssignmentInOperand Avoid assignment to childIndex in operand 3 57
AssignmentInOperand Avoid assignment to childIndex in operand 3 61
AssignmentInOperand Avoid assignment to childIndex in operand 3 66

inez.parser - io/github/magwas/inez/parse/ThrowingErrorListener.java

Rule Violation Priority Line
ImmutableField Field 'input' may be declared final 3 13
SystemPrintln Usage of System.out/err 2 32