PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

civitas/common/CommonConstants.java

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

civitas/common/ballotdesign/BallotDesign.java

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

civitas/crypto/Constants.java

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

civitas/crypto/CryptoError.java

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

civitas/crypto/CryptoException.java

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

civitas/crypto/ciphertext/ElGamalCiphertext.java

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

civitas/crypto/ciphertext/ElGamalCiphertextish.java

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

civitas/crypto/msg/CryptMessage.java

Rule Violation Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 5
ShortMethodName Avoid using short method names 6

civitas/crypto/parameters/ElGamalParameters.java

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

civitas/crypto/parameters/PrimePair.java

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

civitas/crypto/publickey/ElGamalPublicKey.java

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

civitas/crypto/signedciphertext/ElGamalSignedCiphertext.java

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

civitas/util/CivitasBigInteger.java

Rule Violation Line
CyclomaticComplexity The class 'CivitasBigInteger' has a total cyclomatic complexity of 20 (highest 3). 14

civitas/util/CivitasBigIntegerFactory.java

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

civitas/util/CivitasBigIntegerInterface.java

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

civitas/util/CivitasBigintegerBase.java

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

civitas/util/GetCurrentTime.java

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

civitas/util/InitialTests.java

Rule Violation Line
TestClassWithoutTestCases The class 'InitialTests' might be a test class, but it contains no test cases. 10
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 15
UnitTestShouldUseTestAnnotation Unit tests should use the @Test annotation or wont be run. In case of JUnit 5, test methods might use @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest annotations instead. 25

Files

civitas/common/CommonConstants.java

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

civitas/common/ballotdesign/BallotDesign.java

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

civitas/crypto/Constants.java

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

civitas/crypto/CryptoError.java

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

civitas/crypto/CryptoException.java

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

civitas/crypto/ciphertext/ElGamalCiphertext.java

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

civitas/crypto/ciphertext/ElGamalCiphertextish.java

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

civitas/crypto/msg/CryptMessage.java

Rule Violation Priority Line
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3 5
ShortMethodName Avoid using short method names 3 6

civitas/crypto/parameters/ElGamalParameters.java

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

civitas/crypto/parameters/PrimePair.java

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

civitas/crypto/publickey/ElGamalPublicKey.java

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

civitas/crypto/signedciphertext/ElGamalSignedCiphertext.java

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

civitas/util/CivitasBigInteger.java

Rule Violation Priority Line
CyclomaticComplexity The class 'CivitasBigInteger' has a total cyclomatic complexity of 20 (highest 3). 3 14

civitas/util/CivitasBigIntegerFactory.java

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

civitas/util/CivitasBigIntegerInterface.java

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

civitas/util/CivitasBigintegerBase.java

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

civitas/util/GetCurrentTime.java

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

civitas/util/InitialTests.java

Rule Violation Priority Line
TestClassWithoutTestCases The class 'InitialTests' might be a test class, but it contains no test cases. 3 10
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 15
UnitTestShouldUseTestAnnotation Unit tests should use the @Test annotation or wont be run. In case of JUnit 5, test methods might use @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest annotations instead. 3 25