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/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. 23

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/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

Priority 3

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

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

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) 1157
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. 36157
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 96
DelegateMethods Delegate methods should only delegate 101

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/GetBridiElementReferenceIdsService.java

Rule Violation Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `BridiReference::sumtiId` 19

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/element/GetRelativeForBridiElementService.java

Rule Violation Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `Optional::isPresent` 26

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

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 14

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
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `sumtiRepository::delete` 48
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `bridiReferenceRepository::delete` 49
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 53
UselessPureMethodCall Do not call pure method toArray if the result is not used. 66
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
UselessPureMethodCall Do not call pure method toList if the result is not used. 41
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `Bridi::representation` 62

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
UselessPureMethodCall Do not call pure method toArray if the result is not used. 34

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

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

Priority 4

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

Rule Violation Line
ShortClassName Avoid short class names like Inez 14

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 14
TooManyMethods This class has too many methods, consider refactoring it. 3 1439

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 1157
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 36157
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 96
DelegateMethods Delegate methods should only delegate 3 101

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/GetBridiElementReferenceIdsService.java

Rule Violation Priority Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `BridiReference::sumtiId` 3 19

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/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/GetRelativeForBridiElementService.java

Rule Violation Priority Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `Optional::isPresent` 3 26

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

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 14
AvoidThrowingRawExceptionTypes Avoid throwing raw exception type Error. 1 23

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
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `sumtiRepository::delete` 3 48
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `bridiReferenceRepository::delete` 3 49
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 53
UselessPureMethodCall Do not call pure method toArray if the result is not used. 3 66
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
UselessPureMethodCall Do not call pure method toList if the result is not used. 3 41
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `Bridi::representation` 3 62
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
UselessPureMethodCall Do not call pure method toArray if the result is not used. 3 34
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