PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 2

civitas.crypto - civitas/crypto/parameters/encoder/SafePrimeDecode.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'i' 14

civitas.crypto - civitas/crypto/petcommitment/CombinePETShareDecommitments.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'd' 17

Priority 3

civitas.crypto - civitas/bboard/common/BBPost.java

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

civitas.crypto - civitas/bboard/server/Board.java

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

civitas.crypto - civitas/bboard/server/electioncache/ElectionCache.java

Rule Violation Line
OneClass Multiple classes/records 155
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 32

civitas.crypto - civitas/common/ServerHost.java

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

civitas.crypto - civitas/common/VoterDetails.java

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

civitas.crypto - civitas/common/VoterEncCapabilityShares.java

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

civitas.crypto - civitas/common/ballot/Ballot.java

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

civitas.crypto - civitas/common/board/BoardsForTabulation.java

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

civitas.crypto - 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.crypto - civitas/common/capabilityencryption/VoterEncCapabilities.java

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

civitas.crypto - civitas/common/election/ElectionDetails.java

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

civitas.crypto - civitas/common/election/ElectionEvent.java

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

civitas.crypto - civitas/common/election/ElectionEventFinalize.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRoll.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRollCapabilities.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRollCapabilityShares.java

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

civitas.crypto - civitas/common/mix/VoterMix.java

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

civitas.crypto - civitas/common/mix/capabilityelementrevelation/MixCapabilityElementRevelation.java

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

civitas.crypto - civitas/common/mix/capabilitymix/CapabilityMix.java

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

civitas.crypto - civitas/common/mix/elementrevelation/MixElementRevelation.java

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

civitas.crypto - civitas/common/mix/hashrevelation/MixHashRevelation.java

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

civitas.crypto - civitas/common/mix/revelation/MixRevelation.java

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

civitas.crypto - civitas/common/mix/voteelementrevelation/MixVoteElementRevelation.java

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

civitas.crypto - civitas/common/mix/votemix/VoteMix.java

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

civitas.crypto - civitas/common/tabteller/distributeddecryptions/TabTellerDistributedDecryptions.java

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

civitas.crypto - civitas/common/tabteller/petcommitments/TabTellerPETShareCommitments.java

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

civitas.crypto - civitas/common/tabteller/petsharedecommitments/TabTellerPETShareDecommitments.java

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

civitas.crypto - civitas/common/tallystate/TallyState.java

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

civitas.crypto - civitas/common/tallystatefinal/TallyStateFinal.java

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

civitas.crypto - civitas/common/voterapabilityshares/VoterCapabilityShares.java

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

civitas.crypto - civitas/common/votercapabilities/VoterCapabilities.java

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

civitas.crypto - civitas/common/votercapabilitysharesandproofs/VoterCapabilitySharesAndProof.java

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

civitas.crypto - civitas/common/votersubmission/VoterSubmission.java

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

civitas.crypto - civitas/crypto/algorithms/ConvertHashToBigInt.java

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

civitas.crypto - civitas/crypto/algorithms/ConvertToBase64.java

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

civitas.crypto - civitas/crypto/algorithms/CreateFreshNonce.java

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

civitas.crypto - civitas/crypto/algorithms/CreateFreshNonceBase64.java

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

civitas.crypto - civitas/crypto/algorithms/CreatePermutation.java

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

civitas.crypto - civitas/crypto/algorithms/GenerateRandomInt.java

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

civitas.crypto - civitas/crypto/ciphertext/ElGamalEncrypt.java

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

civitas.crypto - civitas/crypto/ciphertext/ElGamalReencrypt.java

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

civitas.crypto - 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 - civitas/crypto/ciphertextlist/CiphertextList.java

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

civitas.crypto - civitas/crypto/decriptionshare/CombineDecryptionShares.java

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

civitas.crypto - civitas/crypto/decriptionshare/ConstructElGamalDecryptionShare.java

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

civitas.crypto - civitas/crypto/decriptionshare/VerifyElGamalDecryptionShare.java

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

civitas.crypto - civitas/crypto/keypair/GenerateElGamalKeyPair.java

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

civitas.crypto - civitas/crypto/keypairshare/GenerateKeyPairShare.java

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

civitas.crypto - civitas/crypto/keyshare/CombineKeyShares.java

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

civitas.crypto - civitas/crypto/keyshare/ConstructElGamalKeyShare.java

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

civitas.crypto - civitas/crypto/keyshare/VerifyElGamalKeyShare.java

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

civitas.crypto - civitas/crypto/msg/DecryptElGamalMessage.java

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

civitas.crypto - 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 - 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 - civitas/crypto/parameters/CalculateNumberOfPrimeTests.java

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

civitas.crypto - civitas/crypto/parameters/CheckGroup.java

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

civitas.crypto - civitas/crypto/parameters/DecodeChoice.java

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

civitas.crypto - 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 - civitas/crypto/parameters/GenerateElGamalParameters.java

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

civitas.crypto - civitas/crypto/parameters/GenerateSafePrime.java

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

civitas.crypto - civitas/crypto/parameters/GenerateSchnorrPrime.java

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

civitas.crypto - civitas/crypto/parameters/LegendreSymbol.java

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

civitas.crypto - 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 - civitas/crypto/parameters/encoder/SafePrimeDecode.java

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

civitas.crypto - civitas/crypto/parameters/encoder/SafePrimeEncode.java

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

civitas.crypto - civitas/crypto/parameters/encoder/SchnorrPrimeDecode.java

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

civitas.crypto - civitas/crypto/parameters/encoder/SchnorrPrimeEncode.java

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

civitas.crypto - civitas/crypto/petcommitment/CombinePETShareDecommitments.java

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

civitas.crypto - civitas/crypto/petcommitment/ConstructPETCommitment.java

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

civitas.crypto - civitas/crypto/petcommitment/IsPetResult.java

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

civitas.crypto - civitas/crypto/petdecommitment/ConstructPETDecommitment.java

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

civitas.crypto - civitas/crypto/petdecommitment/VerifyPETDecommitment.java

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

civitas.crypto - civitas/crypto/petshare/ConstructPETShare.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proof1ofl/ElGamalProof1OfL.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proofdisclog/ConstructElGamalDiscLogEqualityProof.java

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

civitas.crypto - 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 - civitas/crypto/proofdvr/ConstructElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofdvr/FakeElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofdvr/VerifyElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofknowndisclog/ConstructProofKnowDiscLog.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proofvote/ConstructProofVote.java

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

civitas.crypto - civitas/crypto/proofvote/ProofVote.java

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

civitas.crypto - civitas/crypto/proofvote/VerifyProofVote.java

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

civitas.crypto - civitas/crypto/publickey/ElGamalPublicKeyisAuthorized.java

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

civitas.crypto - civitas/crypto/publickey/GetElGamalPublicKeyName.java

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

civitas.crypto - 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 - civitas/crypto/publickeyciphertext/PublicKeyCiphertext.java

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

civitas.crypto - civitas/crypto/reencryptfactor/GenerateElGamalReencryptFactor.java

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

civitas.crypto - civitas/crypto/rsakeypair/GenerateKeyPair.java

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

civitas.crypto - civitas/crypto/rsaprivatekey/CreatePrivateKeyFromBytes.java

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

civitas.crypto - civitas/crypto/rsapublickey/ConvertStringToPublicKey.java

Rule Violation Line
AutowiredFields @Autowired fields naming conventions 18

civitas.crypto - civitas/crypto/rsapublickey/DecryptPublic.java

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

civitas.crypto - civitas/crypto/rsapublickey/IsPublicKeyAuthorized.java

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

civitas.crypto - 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 - civitas/crypto/sharedkey/CreateSharedKeyFromBytes.java

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

civitas.crypto - civitas/crypto/sharedkey/DecryptShared.java

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

civitas.crypto - civitas/crypto/sharedkey/GenerateSharedKey.java

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

civitas.crypto - civitas/crypto/sharedkey/SharedKeyFromWire.java

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

civitas.crypto - civitas/crypto/sharedkey/SharedKeyToWire.java

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

civitas.crypto - 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 - civitas/crypto/sharedkeyciphertext/SharedKeyCiphertext.java

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

civitas.crypto - 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 - civitas/crypto/signature/Signature.java

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

civitas.crypto - civitas/crypto/signature/VerifyElGamalSignature.java

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

civitas.crypto - civitas/crypto/signedciphertext/SignAndEncrypt.java

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

civitas.crypto - civitas/crypto/votecapabilityshare/CombineVoteCapabilityShares.java

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

civitas.crypto - civitas/crypto/votecapabilityshare/GenerateVoteCapabilityShare.java

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

civitas.crypto - civitas/result/CandidateResult.java

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

civitas.crypto - civitas/result/Winners.java

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

civitas.crypto - 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.crypto - civitas/util/CivitasBigIntegerFactory.java

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

civitas.crypto - civitas/util/CivitasBigIntegerInterface.java

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

civitas.crypto - civitas/util/CivitasBigintegerBase.java

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

civitas.crypto - civitas/bboard/common/tests/BBPostTestData.java

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

civitas.crypto - civitas/common/board/tests/BoardClosedContentCommitmentTestData.java

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

civitas.crypto - civitas/common/electoralroll/tests/ElectoralRollCapabilitySharesTestData.java

Rule Violation Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 13
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 18

civitas.crypto - civitas/common/mix/capabilitymix/tests/CapabilityMixTestData.java

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

civitas.crypto - civitas/common/mix/capabilitymixrevelation/tests/MixCapabilityElementRevelationTestData.java

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

civitas.crypto - civitas/common/mix/voteelementrevelation/tests/MixVoteElementRevelationTestData.java

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

civitas.crypto - civitas/common/mix/votemix/tests/VoteMixTestData.java

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

civitas.crypto - civitas/common/tabteller/tests/TabTellerKeyShareTestData.java

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

civitas.crypto - civitas/crypto/algorithms/tests/ConvertToBase64Test.java

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

civitas.crypto - civitas/crypto/algorithms/tests/GenerateRandomIntTest.java

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

civitas.crypto - civitas/crypto/ciphertext/tests/MultiplyCiphertextsTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 33
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 34

civitas.crypto - civitas/crypto/ciphertextlist/tests/ElGamalCiphertextListTestData.java

Rule Violation Line
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 19
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 21
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 23
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 26
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 27
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 28
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 32
CompareObjectsWithEquals Use equals() to compare object references. 72

civitas.crypto - civitas/crypto/decriptionshare/tests/ConstructElGamalDecryptionShareTest.java

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

civitas.crypto - civitas/crypto/decriptionshare/tests/VerifyElGamalDecryptionShareTest.java

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

civitas.crypto - civitas/crypto/keypair/tests/GenerateElGamalKeyPairTest.java

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

civitas.crypto - civitas/crypto/keypairshare/tests/GenerateKeyPairShareTest.java

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

civitas.crypto - civitas/crypto/keyshare/tests/CombineKeySharesTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 36
UnnecessaryVarargsArrayCreation Unnecessary explicit array creation for varargs method call 57

civitas.crypto - civitas/crypto/messagedigest/tests/CryptoHashStub.java

Rule Violation Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 39
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 43
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 45
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 46
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 94
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 94
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 95
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 95
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 106

civitas.crypto - civitas/crypto/oneoflreencryption/tests/ConstructElGamal1OfLReencryptionTest.java

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

civitas.crypto - civitas/crypto/parameters/tests/CheckGroupTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 37
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 45
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 55
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 63
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 71

civitas.crypto - civitas/crypto/parameters/tests/GenerateSafePrimeTest.java

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

civitas.crypto - civitas/crypto/parameters/tests/GenerateSchnorrPrimeTest.java

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

civitas.crypto - civitas/crypto/petcommitment/tests/IsPetResultTest.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The field 'isPetResult' indicates linguistically it is a boolean, but it is 'IsPetResult' 18

civitas.crypto - civitas/crypto/petdecommitment/tests/CombinePETShareDecommitmentsTest.java

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

civitas.crypto - civitas/crypto/petdecommitment/tests/ConstructPETDecommitmentTest.java

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

civitas.crypto - civitas/crypto/petdecommitment/tests/VerifyPETDecommitmentTest.java

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

civitas.crypto - civitas/crypto/proof1ofl/tests/ConstructWellKnownCiphertextsTest.java

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

civitas.crypto - civitas/crypto/proof1ofl/tests/ElGamalProof1OfLTestData.java

Rule Violation Line
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 53

civitas.crypto - civitas/crypto/proofdvr/tests/ElGamalProofDVRTestData.java

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

civitas.crypto - civitas/crypto/proofvote/tests/ProofVoteTestData.java

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

civitas.crypto - civitas/crypto/publickeyciphertext/tests/PublicKeyCiphertextTestData.java

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

civitas.crypto - civitas/crypto/publickeymsg/tests/PublicKeyMsgCTest.java

Rule Violation Line
TestClassWithoutTestCases The class 'PublicKeyMsgCTest' might be a test class, but it contains no test cases. 6

civitas.crypto - civitas/crypto/rsaprivatekey/tests/KeySpecMatcher.java

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

civitas.crypto - civitas/crypto/rsaprivatekey/tests/KeySpecMatcherPrivate.java

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

civitas.crypto - civitas/crypto/rsapublickey/tests/IsPublicKeyAuthorizedTest.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The field 'isPublicKeyAuthorized' indicates linguistically it is a boolean, but it is 'IsPublicKeyAuthorized' 26
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 45

civitas.crypto - civitas/crypto/rsapublickey/tests/VerifyPublicKeySignatureStub.java

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

civitas.crypto - civitas/crypto/rsapublickey/tests/VerifyPublicKeySignatureTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 40
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 42
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 44
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 52
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 61
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 68
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 69
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 76
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 81
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 83
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 99
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 101

civitas.crypto - civitas/crypto/sharedkey/tests/SharedKeyTestData.java

Rule Violation Line
HardCodedCryptoKey Do not use hard coded encryption keys 17
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 17

civitas.crypto - civitas/crypto/sharedkeyciphertext/tests/SharedKeyCiphertextTestData.java

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

civitas.crypto - civitas/crypto/signature/tests/SignWithPublicKeyTest.java

Rule Violation Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 49
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 52
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 55
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 63
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 77
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 79

civitas.crypto - civitas/crypto/signature/tests/SignatureTestData.java

Rule Violation Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 9
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 12
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 21
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 23
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 25
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 28
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 31

civitas.crypto - civitas/crypto/signature/tests/VerifyElGamalSignatureTest.java

Rule Violation Line
ShortMethodName Avoid using short method names 48

civitas.crypto - civitas/crypto/tests/CryptoBaseStub.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 1135
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 79
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 87
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 93
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 101

civitas.crypto - civitas/crypto/tests/CryptoErrorTest.java

Rule Violation Line
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 12
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 18
UnitTestShouldIncludeAssert This unit test should include assert() or fail() 24

civitas.crypto - civitas/crypto/votecapabilityshare/tests/CombineVoteCapabilitySharesTest.java

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

Files

civitas.crypto - civitas/bboard/common/BBPost.java

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

civitas.crypto - civitas/bboard/server/Board.java

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

civitas.crypto - civitas/bboard/server/electioncache/ElectionCache.java

Rule Violation Priority Line
OneClass Multiple classes/records 3 155
ClassesShouldBeKnown Classes should be either Data, Service,Controller,Repository 3 32

civitas.crypto - civitas/common/ServerHost.java

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

civitas.crypto - civitas/common/VoterDetails.java

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

civitas.crypto - civitas/common/VoterEncCapabilityShares.java

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

civitas.crypto - civitas/common/ballot/Ballot.java

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

civitas.crypto - civitas/common/board/BoardsForTabulation.java

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

civitas.crypto - 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.crypto - civitas/common/capabilityencryption/VoterEncCapabilities.java

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

civitas.crypto - civitas/common/election/ElectionDetails.java

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

civitas.crypto - civitas/common/election/ElectionEvent.java

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

civitas.crypto - civitas/common/election/ElectionEventFinalize.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRoll.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRollCapabilities.java

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

civitas.crypto - civitas/common/electoralroll/ElectoralRollCapabilityShares.java

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

civitas.crypto - civitas/common/mix/VoterMix.java

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

civitas.crypto - civitas/common/mix/capabilityelementrevelation/MixCapabilityElementRevelation.java

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

civitas.crypto - civitas/common/mix/capabilitymix/CapabilityMix.java

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

civitas.crypto - civitas/common/mix/elementrevelation/MixElementRevelation.java

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

civitas.crypto - civitas/common/mix/hashrevelation/MixHashRevelation.java

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

civitas.crypto - civitas/common/mix/revelation/MixRevelation.java

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

civitas.crypto - civitas/common/mix/voteelementrevelation/MixVoteElementRevelation.java

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

civitas.crypto - civitas/common/mix/votemix/VoteMix.java

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

civitas.crypto - civitas/common/tabteller/distributeddecryptions/TabTellerDistributedDecryptions.java

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

civitas.crypto - civitas/common/tabteller/petcommitments/TabTellerPETShareCommitments.java

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

civitas.crypto - civitas/common/tabteller/petsharedecommitments/TabTellerPETShareDecommitments.java

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

civitas.crypto - civitas/common/tallystate/TallyState.java

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

civitas.crypto - civitas/common/tallystatefinal/TallyStateFinal.java

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

civitas.crypto - civitas/common/voterapabilityshares/VoterCapabilityShares.java

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

civitas.crypto - civitas/common/votercapabilities/VoterCapabilities.java

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

civitas.crypto - civitas/common/votercapabilitysharesandproofs/VoterCapabilitySharesAndProof.java

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

civitas.crypto - civitas/common/votersubmission/VoterSubmission.java

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

civitas.crypto - civitas/crypto/algorithms/ConvertHashToBigInt.java

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

civitas.crypto - civitas/crypto/algorithms/ConvertToBase64.java

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

civitas.crypto - civitas/crypto/algorithms/CreateFreshNonce.java

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

civitas.crypto - civitas/crypto/algorithms/CreateFreshNonceBase64.java

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

civitas.crypto - civitas/crypto/algorithms/CreatePermutation.java

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

civitas.crypto - civitas/crypto/algorithms/GenerateRandomInt.java

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

civitas.crypto - civitas/crypto/ciphertext/ElGamalEncrypt.java

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

civitas.crypto - civitas/crypto/ciphertext/ElGamalReencrypt.java

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

civitas.crypto - 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 - civitas/crypto/ciphertextlist/CiphertextList.java

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

civitas.crypto - civitas/crypto/decriptionshare/CombineDecryptionShares.java

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

civitas.crypto - civitas/crypto/decriptionshare/ConstructElGamalDecryptionShare.java

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

civitas.crypto - civitas/crypto/decriptionshare/VerifyElGamalDecryptionShare.java

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

civitas.crypto - civitas/crypto/keypair/GenerateElGamalKeyPair.java

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

civitas.crypto - civitas/crypto/keypairshare/GenerateKeyPairShare.java

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

civitas.crypto - civitas/crypto/keyshare/CombineKeyShares.java

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

civitas.crypto - civitas/crypto/keyshare/ConstructElGamalKeyShare.java

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

civitas.crypto - civitas/crypto/keyshare/VerifyElGamalKeyShare.java

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

civitas.crypto - civitas/crypto/msg/DecryptElGamalMessage.java

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

civitas.crypto - 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 - 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 - civitas/crypto/parameters/CalculateNumberOfPrimeTests.java

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

civitas.crypto - civitas/crypto/parameters/CheckGroup.java

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

civitas.crypto - civitas/crypto/parameters/DecodeChoice.java

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

civitas.crypto - 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 - civitas/crypto/parameters/GenerateElGamalParameters.java

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

civitas.crypto - civitas/crypto/parameters/GenerateSafePrime.java

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

civitas.crypto - civitas/crypto/parameters/GenerateSchnorrPrime.java

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

civitas.crypto - civitas/crypto/parameters/LegendreSymbol.java

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

civitas.crypto - 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 - 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 - civitas/crypto/parameters/encoder/SafePrimeEncode.java

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

civitas.crypto - civitas/crypto/parameters/encoder/SchnorrPrimeDecode.java

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

civitas.crypto - civitas/crypto/parameters/encoder/SchnorrPrimeEncode.java

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

civitas.crypto - 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 - civitas/crypto/petcommitment/ConstructPETCommitment.java

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

civitas.crypto - civitas/crypto/petcommitment/IsPetResult.java

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

civitas.crypto - civitas/crypto/petdecommitment/ConstructPETDecommitment.java

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

civitas.crypto - civitas/crypto/petdecommitment/VerifyPETDecommitment.java

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

civitas.crypto - civitas/crypto/petshare/ConstructPETShare.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proof1ofl/ElGamalProof1OfL.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proofdisclog/ConstructElGamalDiscLogEqualityProof.java

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

civitas.crypto - 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 - civitas/crypto/proofdvr/ConstructElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofdvr/FakeElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofdvr/VerifyElGamalProofDVR.java

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

civitas.crypto - civitas/crypto/proofknowndisclog/ConstructProofKnowDiscLog.java

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

civitas.crypto - 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 - 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 - civitas/crypto/proofvote/ConstructProofVote.java

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

civitas.crypto - civitas/crypto/proofvote/ProofVote.java

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

civitas.crypto - civitas/crypto/proofvote/VerifyProofVote.java

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

civitas.crypto - civitas/crypto/publickey/ElGamalPublicKeyisAuthorized.java

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

civitas.crypto - civitas/crypto/publickey/GetElGamalPublicKeyName.java

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

civitas.crypto - 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 - civitas/crypto/publickeyciphertext/PublicKeyCiphertext.java

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

civitas.crypto - civitas/crypto/reencryptfactor/GenerateElGamalReencryptFactor.java

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

civitas.crypto - civitas/crypto/rsakeypair/GenerateKeyPair.java

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

civitas.crypto - civitas/crypto/rsaprivatekey/CreatePrivateKeyFromBytes.java

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

civitas.crypto - civitas/crypto/rsapublickey/ConvertStringToPublicKey.java

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

civitas.crypto - civitas/crypto/rsapublickey/DecryptPublic.java

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

civitas.crypto - civitas/crypto/rsapublickey/IsPublicKeyAuthorized.java

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

civitas.crypto - 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 - civitas/crypto/sharedkey/CreateSharedKeyFromBytes.java

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

civitas.crypto - civitas/crypto/sharedkey/DecryptShared.java

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

civitas.crypto - civitas/crypto/sharedkey/GenerateSharedKey.java

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

civitas.crypto - civitas/crypto/sharedkey/SharedKeyFromWire.java

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

civitas.crypto - civitas/crypto/sharedkey/SharedKeyToWire.java

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

civitas.crypto - 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 - civitas/crypto/sharedkeyciphertext/SharedKeyCiphertext.java

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

civitas.crypto - 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 - civitas/crypto/signature/Signature.java

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

civitas.crypto - civitas/crypto/signature/VerifyElGamalSignature.java

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

civitas.crypto - civitas/crypto/signedciphertext/SignAndEncrypt.java

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

civitas.crypto - civitas/crypto/votecapabilityshare/CombineVoteCapabilityShares.java

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

civitas.crypto - civitas/crypto/votecapabilityshare/GenerateVoteCapabilityShare.java

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

civitas.crypto - civitas/result/CandidateResult.java

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

civitas.crypto - civitas/result/Winners.java

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

civitas.crypto - 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.crypto - civitas/util/CivitasBigIntegerFactory.java

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

civitas.crypto - civitas/util/CivitasBigIntegerInterface.java

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

civitas.crypto - civitas/util/CivitasBigintegerBase.java

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

civitas.crypto - civitas/bboard/common/tests/BBPostTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 18

civitas.crypto - civitas/common/board/tests/BoardClosedContentCommitmentTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 18

civitas.crypto - civitas/common/electoralroll/tests/ElectoralRollCapabilitySharesTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 13
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 18

civitas.crypto - civitas/common/mix/capabilitymix/tests/CapabilityMixTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 23

civitas.crypto - civitas/common/mix/capabilitymixrevelation/tests/MixCapabilityElementRevelationTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 18
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 19

civitas.crypto - civitas/common/mix/voteelementrevelation/tests/MixVoteElementRevelationTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 13

civitas.crypto - civitas/common/mix/votemix/tests/VoteMixTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 21

civitas.crypto - civitas/common/tabteller/tests/TabTellerKeyShareTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 9

civitas.crypto - civitas/crypto/algorithms/tests/ConvertToBase64Test.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 27

civitas.crypto - civitas/crypto/algorithms/tests/GenerateRandomIntTest.java

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

civitas.crypto - civitas/crypto/ciphertext/tests/MultiplyCiphertextsTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 33
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 34

civitas.crypto - civitas/crypto/ciphertextlist/tests/ElGamalCiphertextListTestData.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 19
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 21
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 23
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 26
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 28
LooseCoupling Avoid using implementation types like 'CiphertextList'; use the interface instead 3 32
CompareObjectsWithEquals Use equals() to compare object references. 3 72

civitas.crypto - civitas/crypto/decriptionshare/tests/ConstructElGamalDecryptionShareTest.java

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

civitas.crypto - civitas/crypto/decriptionshare/tests/VerifyElGamalDecryptionShareTest.java

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

civitas.crypto - civitas/crypto/keypair/tests/GenerateElGamalKeyPairTest.java

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

civitas.crypto - civitas/crypto/keypairshare/tests/GenerateKeyPairShareTest.java

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

civitas.crypto - civitas/crypto/keyshare/tests/CombineKeySharesTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 36
UnnecessaryVarargsArrayCreation Unnecessary explicit array creation for varargs method call 3 57

civitas.crypto - civitas/crypto/messagedigest/tests/CryptoHashStub.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 39
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 43
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 45
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 46
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 94
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 94
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 95
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 95
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 106

civitas.crypto - civitas/crypto/oneoflreencryption/tests/ConstructElGamal1OfLReencryptionTest.java

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

civitas.crypto - civitas/crypto/parameters/tests/CheckGroupTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 37
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 45
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 55
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 63
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 71

civitas.crypto - civitas/crypto/parameters/tests/GenerateSafePrimeTest.java

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

civitas.crypto - civitas/crypto/parameters/tests/GenerateSchnorrPrimeTest.java

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

civitas.crypto - civitas/crypto/petcommitment/tests/IsPetResultTest.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The field 'isPetResult' indicates linguistically it is a boolean, but it is 'IsPetResult' 3 18

civitas.crypto - civitas/crypto/petdecommitment/tests/CombinePETShareDecommitmentsTest.java

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

civitas.crypto - civitas/crypto/petdecommitment/tests/ConstructPETDecommitmentTest.java

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

civitas.crypto - civitas/crypto/petdecommitment/tests/VerifyPETDecommitmentTest.java

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

civitas.crypto - civitas/crypto/proof1ofl/tests/ConstructWellKnownCiphertextsTest.java

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

civitas.crypto - civitas/crypto/proof1ofl/tests/ElGamalProof1OfLTestData.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 53

civitas.crypto - civitas/crypto/proofdvr/tests/ElGamalProofDVRTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 14
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 70

civitas.crypto - civitas/crypto/proofvote/tests/ProofVoteTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 30

civitas.crypto - civitas/crypto/publickeyciphertext/tests/PublicKeyCiphertextTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 6

civitas.crypto - civitas/crypto/publickeymsg/tests/PublicKeyMsgCTest.java

Rule Violation Priority Line
TestClassWithoutTestCases The class 'PublicKeyMsgCTest' might be a test class, but it contains no test cases. 3 6

civitas.crypto - civitas/crypto/rsaprivatekey/tests/KeySpecMatcher.java

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

civitas.crypto - civitas/crypto/rsaprivatekey/tests/KeySpecMatcherPrivate.java

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

civitas.crypto - civitas/crypto/rsapublickey/tests/IsPublicKeyAuthorizedTest.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The field 'isPublicKeyAuthorized' indicates linguistically it is a boolean, but it is 'IsPublicKeyAuthorized' 3 26
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 45

civitas.crypto - civitas/crypto/rsapublickey/tests/VerifyPublicKeySignatureStub.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 22

civitas.crypto - civitas/crypto/rsapublickey/tests/VerifyPublicKeySignatureTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 40
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 42
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 44
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 52
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 61
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 68
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 69
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 76
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 81
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 83
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 99
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 101

civitas.crypto - civitas/crypto/sharedkey/tests/SharedKeyTestData.java

Rule Violation Priority Line
HardCodedCryptoKey Do not use hard coded encryption keys 3 17
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 17

civitas.crypto - civitas/crypto/sharedkeyciphertext/tests/SharedKeyCiphertextTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 6

civitas.crypto - civitas/crypto/signature/tests/SignWithPublicKeyTest.java

Rule Violation Priority Line
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 49
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 52
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 55
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 63
UnitTestContainsTooManyAsserts Unit tests should not contain more than 1 assert(s). 3 77
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 79

civitas.crypto - civitas/crypto/signature/tests/SignatureTestData.java

Rule Violation Priority Line
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 9
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 12
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 15
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 21
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 23
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 25
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 28
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 31

civitas.crypto - civitas/crypto/signature/tests/VerifyElGamalSignatureTest.java

Rule Violation Priority Line
ShortMethodName Avoid using short method names 3 48

civitas.crypto - civitas/crypto/tests/CryptoBaseStub.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 1135
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 79
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 87
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 93
RelianceOnDefaultCharset Specify a character set instead of relying on the default charset 3 101

civitas.crypto - civitas/crypto/tests/CryptoErrorTest.java

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

civitas.crypto - civitas/crypto/votecapabilityshare/tests/CombineVoteCapabilitySharesTest.java

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