PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 2
civitas/crypto/parameters/encoder/SafePrimeDecode.java
civitas/crypto/petcommitment/CombinePETShareDecommitments.java
Priority 3
civitas/bboard/common/BBPost.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
18 |
civitas/bboard/server/Board.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/bboard/server/electioncache/ElectionCache.java
| Rule |
Violation |
Line |
| OneClass |
Multiple classes/records |
1–55 |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
32 |
civitas/common/ServerHost.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/common/VoterDetails.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/VoterEncCapabilityShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/ballot/Ballot.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/common/board/BoardsForTabulation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/board/BulletinBoardIDish.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
| ShortMethodName |
Avoid using short method names |
6 |
civitas/common/capabilityencryption/VoterEncCapabilities.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/election/ElectionDetails.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
22 |
civitas/common/election/ElectionEvent.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/common/election/ElectionEventFinalize.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/common/electoralroll/ElectoralRoll.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/electoralroll/ElectoralRollCapabilities.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/electoralroll/ElectoralRollCapabilityShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/mix/VoterMix.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/common/mix/capabilityelementrevelation/MixCapabilityElementRevelation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/common/mix/capabilitymix/CapabilityMix.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/common/mix/elementrevelation/MixElementRevelation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/common/mix/hashrevelation/MixHashRevelation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/common/mix/revelation/MixRevelation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/common/mix/voteelementrevelation/MixVoteElementRevelation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/common/mix/votemix/VoteMix.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
17 |
civitas/common/tabteller/distributeddecryptions/TabTellerDistributedDecryptions.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/common/tabteller/petcommitments/TabTellerPETShareCommitments.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/tabteller/petsharedecommitments/TabTellerPETShareDecommitments.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/common/tallystate/TallyState.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/tallystatefinal/TallyStateFinal.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/voterapabilityshares/VoterCapabilityShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/votercapabilities/VoterCapabilities.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/common/votercapabilitysharesandproofs/VoterCapabilitySharesAndProof.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/common/votersubmission/VoterSubmission.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/algorithms/ConvertHashToBigInt.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/algorithms/ConvertToBase64.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/algorithms/CreateFreshNonce.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/algorithms/CreateFreshNonceBase64.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
7 |
civitas/crypto/algorithms/CreatePermutation.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/algorithms/GenerateRandomInt.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/ciphertext/ElGamalEncrypt.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/ciphertext/ElGamalReencrypt.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/ciphertext/MultiplyCiphertexts.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
7 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
9 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
28 |
civitas/crypto/ciphertextlist/CiphertextList.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/decriptionshare/CombineDecryptionShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/decriptionshare/ConstructElGamalDecryptionShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/decriptionshare/VerifyElGamalDecryptionShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/keypair/GenerateElGamalKeyPair.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/keypairshare/GenerateKeyPairShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/keyshare/CombineKeyShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/keyshare/ConstructElGamalKeyShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/keyshare/VerifyElGamalKeyShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/crypto/msg/DecryptElGamalMessage.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/crypto/msg/EncodeMessage.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
34 |
| PreserveStackTrace |
Thrown exception does not preserve the stack trace of exception 'e' on all code paths |
35 |
civitas/crypto/oneoflreencryption/ConstructElGamal1OfLReencryption.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
25 |
civitas/crypto/parameters/CalculateNumberOfPrimeTests.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
6 |
| TestClassWithoutTestCases |
The class 'CalculateNumberOfPrimeTests' might be a test class, but it contains no test cases. |
6 |
civitas/crypto/parameters/CheckGroup.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
6 |
civitas/crypto/parameters/DecodeChoice.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/parameters/FindGeneratorService.java
| Rule |
Violation |
Line |
| AutowiredFields |
@Autowired fields naming conventions |
13 |
| UnusedAssignment |
The initializer for variable 'g' is never used (overwritten on line 22) |
16 |
| UnusedAssignment |
The initializer for variable 'reject' is never used (overwritten on line 24) |
17 |
civitas/crypto/parameters/GenerateElGamalParameters.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/parameters/GenerateSafePrime.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/crypto/parameters/GenerateSchnorrPrime.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/parameters/LegendreSymbol.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/parameters/SetUpDecodeMap.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
14 |
civitas/crypto/parameters/encoder/SafePrimeDecode.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
7 |
civitas/crypto/parameters/encoder/SafePrimeEncode.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/crypto/parameters/encoder/SchnorrPrimeDecode.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
7 |
civitas/crypto/parameters/encoder/SchnorrPrimeEncode.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/petcommitment/CombinePETShareDecommitments.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/petcommitment/ConstructPETCommitment.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/petcommitment/IsPetResult.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/petdecommitment/ConstructPETDecommitment.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/petdecommitment/VerifyPETDecommitment.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/crypto/petshare/ConstructPETShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/proof1ofl/ConstructElGamalProof1OfL.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
22 |
| CyclomaticComplexity |
The method 'apply(ElGamalPublicKey, CiphertextList, int, ElGamalCiphertextish, ElGamalReencryptFactor)' has a cyclomatic complexity of 10. |
32 |
| NPathComplexity |
The method 'apply(ElGamalPublicKey, CiphertextList, int, ElGamalCiphertextish, ElGamalReencryptFactor)' has an NPath complexity of 288, current threshold is 200 |
32 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
34 |
civitas/crypto/proof1ofl/ConstructWellKnownCiphertexts.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
19 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
27 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
31 |
| AvoidInstantiatingObjectsInLoops |
Avoid instantiating new objects inside loops |
37 |
civitas/crypto/proof1ofl/ElGamalProof1OfL.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/proof1ofl/VerifyElGamal1OfLReencryption.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
19 |
civitas/crypto/proof1ofl/VerifyElGamalProof1OfL.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
20 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
30 |
civitas/crypto/proofdisclog/ConstructElGamalDiscLogEqualityProof.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/proofdisclog/VerifyElGamalProofDiscLogEquality.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
8 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
19 |
civitas/crypto/proofdvr/ConstructElGamalProofDVR.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
20 |
civitas/crypto/proofdvr/FakeElGamalProofDVR.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
20 |
civitas/crypto/proofdvr/VerifyElGamalProofDVR.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/proofknowndisclog/ConstructProofKnowDiscLog.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/proofknowndisclog/VerifyElGamalProofKnowDiscLog.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
16 |
civitas/crypto/proofvote/CalculateProofEnvironment.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
31 |
civitas/crypto/proofvote/ConstructProofVote.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
17 |
civitas/crypto/proofvote/ProofVote.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/proofvote/VerifyProofVote.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/crypto/publickey/ElGamalPublicKeyisAuthorized.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/publickey/GetElGamalPublicKeyName.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
8 |
civitas/crypto/publickeyciphertext/EncryptPublic.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
20 |
civitas/crypto/publickeyciphertext/PublicKeyCiphertext.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/reencryptfactor/GenerateElGamalReencryptFactor.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
10 |
civitas/crypto/rsakeypair/GenerateKeyPair.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/rsaprivatekey/CreatePrivateKeyFromBytes.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/rsapublickey/ConvertStringToPublicKey.java
| Rule |
Violation |
Line |
| AutowiredFields |
@Autowired fields naming conventions |
18 |
civitas/crypto/rsapublickey/DecryptPublic.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
civitas/crypto/rsapublickey/IsPublicKeyAuthorized.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/rsapublickey/VerifyPublicKeySignature.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
15 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
26 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
31 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
46 |
civitas/crypto/sharedkey/CreateSharedKeyFromBytes.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/sharedkey/DecryptShared.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
civitas/crypto/sharedkey/GenerateSharedKey.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/crypto/sharedkey/SharedKeyFromWire.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
11 |
civitas/crypto/sharedkey/SharedKeyToWire.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/crypto/sharedkeyciphertext/EncryptShared.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
14 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
26 |
civitas/crypto/sharedkeyciphertext/SharedKeyCiphertext.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/crypto/signature/SignWithPublicKey.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
18 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
29 |
civitas/crypto/signature/Signature.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
17 |
civitas/crypto/signature/VerifyElGamalSignature.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
civitas/crypto/signedciphertext/SignAndEncrypt.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
16 |
civitas/crypto/votecapabilityshare/CombineVoteCapabilityShares.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
7 |
civitas/crypto/votecapabilityshare/GenerateVoteCapabilityShare.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
13 |
civitas/result/CandidateResult.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/result/Winners.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
9 |
civitas/util/CivitasBigInteger.java
| Rule |
Violation |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
12 |
| CyclomaticComplexity |
The class 'CivitasBigInteger' has a total cyclomatic complexity of 20 (highest 3). |
12 |
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 |
Files
civitas/bboard/common/BBPost.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
18 |
civitas/bboard/server/Board.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/bboard/server/electioncache/ElectionCache.java
| Rule |
Violation |
Priority |
Line |
| OneClass |
Multiple classes/records |
3 |
1–55 |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
32 |
civitas/common/ServerHost.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/common/VoterDetails.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/VoterEncCapabilityShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/ballot/Ballot.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/common/board/BoardsForTabulation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/board/BulletinBoardIDish.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
3 |
| ShortMethodName |
Avoid using short method names |
3 |
6 |
civitas/common/capabilityencryption/VoterEncCapabilities.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/election/ElectionDetails.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
22 |
civitas/common/election/ElectionEvent.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/common/election/ElectionEventFinalize.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/common/electoralroll/ElectoralRoll.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/electoralroll/ElectoralRollCapabilities.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/electoralroll/ElectoralRollCapabilityShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/mix/VoterMix.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/common/mix/capabilityelementrevelation/MixCapabilityElementRevelation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/common/mix/capabilitymix/CapabilityMix.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/common/mix/elementrevelation/MixElementRevelation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/common/mix/hashrevelation/MixHashRevelation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/common/mix/revelation/MixRevelation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/common/mix/voteelementrevelation/MixVoteElementRevelation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/common/mix/votemix/VoteMix.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
17 |
civitas/common/tabteller/distributeddecryptions/TabTellerDistributedDecryptions.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/common/tabteller/petcommitments/TabTellerPETShareCommitments.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/tabteller/petsharedecommitments/TabTellerPETShareDecommitments.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/common/tallystate/TallyState.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/tallystatefinal/TallyStateFinal.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/voterapabilityshares/VoterCapabilityShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/votercapabilities/VoterCapabilities.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/common/votercapabilitysharesandproofs/VoterCapabilitySharesAndProof.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/common/votersubmission/VoterSubmission.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/algorithms/ConvertHashToBigInt.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/algorithms/ConvertToBase64.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/algorithms/CreateFreshNonce.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/algorithms/CreateFreshNonceBase64.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
7 |
civitas/crypto/algorithms/CreatePermutation.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/algorithms/GenerateRandomInt.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/ciphertext/ElGamalEncrypt.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/ciphertext/ElGamalReencrypt.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/ciphertext/MultiplyCiphertexts.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
7 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
9 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
28 |
civitas/crypto/ciphertextlist/CiphertextList.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/decriptionshare/CombineDecryptionShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/decriptionshare/ConstructElGamalDecryptionShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/decriptionshare/VerifyElGamalDecryptionShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/keypair/GenerateElGamalKeyPair.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/keypairshare/GenerateKeyPairShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/keyshare/CombineKeyShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/keyshare/ConstructElGamalKeyShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/keyshare/VerifyElGamalKeyShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/crypto/msg/DecryptElGamalMessage.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/crypto/msg/EncodeMessage.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
3 |
34 |
| PreserveStackTrace |
Thrown exception does not preserve the stack trace of exception 'e' on all code paths |
3 |
35 |
civitas/crypto/oneoflreencryption/ConstructElGamal1OfLReencryption.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
25 |
civitas/crypto/parameters/CalculateNumberOfPrimeTests.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
6 |
| TestClassWithoutTestCases |
The class 'CalculateNumberOfPrimeTests' might be a test class, but it contains no test cases. |
3 |
6 |
civitas/crypto/parameters/CheckGroup.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
6 |
civitas/crypto/parameters/DecodeChoice.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/parameters/FindGeneratorService.java
| Rule |
Violation |
Priority |
Line |
| AutowiredFields |
@Autowired fields naming conventions |
3 |
13 |
| UnusedAssignment |
The initializer for variable 'g' is never used (overwritten on line 22) |
3 |
16 |
| UnusedAssignment |
The initializer for variable 'reject' is never used (overwritten on line 24) |
3 |
17 |
civitas/crypto/parameters/GenerateElGamalParameters.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/parameters/GenerateSafePrime.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/crypto/parameters/GenerateSchnorrPrime.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/parameters/LegendreSymbol.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/parameters/SetUpDecodeMap.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
14 |
civitas/crypto/parameters/encoder/SafePrimeDecode.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
7 |
| AvoidReassigningParameters |
Avoid reassigning parameters such as 'i' |
2 |
14 |
civitas/crypto/parameters/encoder/SafePrimeEncode.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/crypto/parameters/encoder/SchnorrPrimeDecode.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
7 |
civitas/crypto/parameters/encoder/SchnorrPrimeEncode.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/petcommitment/CombinePETShareDecommitments.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
| AvoidReassigningParameters |
Avoid reassigning parameters such as 'd' |
2 |
17 |
civitas/crypto/petcommitment/ConstructPETCommitment.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/petcommitment/IsPetResult.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/petdecommitment/ConstructPETDecommitment.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/petdecommitment/VerifyPETDecommitment.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/crypto/petshare/ConstructPETShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/proof1ofl/ConstructElGamalProof1OfL.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
22 |
| CyclomaticComplexity |
The method 'apply(ElGamalPublicKey, CiphertextList, int, ElGamalCiphertextish, ElGamalReencryptFactor)' has a cyclomatic complexity of 10. |
3 |
32 |
| NPathComplexity |
The method 'apply(ElGamalPublicKey, CiphertextList, int, ElGamalCiphertextish, ElGamalReencryptFactor)' has an NPath complexity of 288, current threshold is 200 |
3 |
32 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
34 |
civitas/crypto/proof1ofl/ConstructWellKnownCiphertexts.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
19 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
27 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
31 |
| AvoidInstantiatingObjectsInLoops |
Avoid instantiating new objects inside loops |
3 |
37 |
civitas/crypto/proof1ofl/ElGamalProof1OfL.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/proof1ofl/VerifyElGamal1OfLReencryption.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
19 |
civitas/crypto/proof1ofl/VerifyElGamalProof1OfL.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
20 |
| LooseCoupling |
Avoid using implementation types like 'CiphertextList'; use the interface instead |
3 |
30 |
civitas/crypto/proofdisclog/ConstructElGamalDiscLogEqualityProof.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/proofdisclog/VerifyElGamalProofDiscLogEquality.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
8 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
3 |
19 |
civitas/crypto/proofdvr/ConstructElGamalProofDVR.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
20 |
civitas/crypto/proofdvr/FakeElGamalProofDVR.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
20 |
civitas/crypto/proofdvr/VerifyElGamalProofDVR.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/proofknowndisclog/ConstructProofKnowDiscLog.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/proofknowndisclog/VerifyElGamalProofKnowDiscLog.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
3 |
16 |
civitas/crypto/proofvote/CalculateProofEnvironment.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
31 |
civitas/crypto/proofvote/ConstructProofVote.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
17 |
civitas/crypto/proofvote/ProofVote.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/proofvote/VerifyProofVote.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/crypto/publickey/ElGamalPublicKeyisAuthorized.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/publickey/GetElGamalPublicKeyName.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
8 |
civitas/crypto/publickeyciphertext/EncryptPublic.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
20 |
civitas/crypto/publickeyciphertext/PublicKeyCiphertext.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/reencryptfactor/GenerateElGamalReencryptFactor.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
10 |
civitas/crypto/rsakeypair/GenerateKeyPair.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/rsaprivatekey/CreatePrivateKeyFromBytes.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/rsapublickey/ConvertStringToPublicKey.java
| Rule |
Violation |
Priority |
Line |
| AutowiredFields |
@Autowired fields naming conventions |
3 |
18 |
civitas/crypto/rsapublickey/DecryptPublic.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
civitas/crypto/rsapublickey/IsPublicKeyAuthorized.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/rsapublickey/VerifyPublicKeySignature.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
15 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
26 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
31 |
| AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
3 |
46 |
civitas/crypto/sharedkey/CreateSharedKeyFromBytes.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/sharedkey/DecryptShared.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
civitas/crypto/sharedkey/GenerateSharedKey.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/crypto/sharedkey/SharedKeyFromWire.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
11 |
civitas/crypto/sharedkey/SharedKeyToWire.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/crypto/sharedkeyciphertext/EncryptShared.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
14 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
26 |
civitas/crypto/sharedkeyciphertext/SharedKeyCiphertext.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/crypto/signature/SignWithPublicKey.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
18 |
| RelianceOnDefaultCharset |
Specify a character set instead of relying on the default charset |
3 |
29 |
civitas/crypto/signature/Signature.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
17 |
civitas/crypto/signature/VerifyElGamalSignature.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
civitas/crypto/signedciphertext/SignAndEncrypt.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
16 |
civitas/crypto/votecapabilityshare/CombineVoteCapabilityShares.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
7 |
civitas/crypto/votecapabilityshare/GenerateVoteCapabilityShare.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
13 |
civitas/result/CandidateResult.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/result/Winners.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
9 |
civitas/util/CivitasBigInteger.java
| Rule |
Violation |
Priority |
Line |
| ClassesShouldBeKnown |
Classes should be either Data, Service,Controller,Repository |
3 |
12 |
| CyclomaticComplexity |
The class 'CivitasBigInteger' has a total cyclomatic complexity of 20 (highest 3). |
3 |
12 |
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 |