Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 5.3.5.

Fichiers

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/JCaptchaEngineService.java

Violation Ligne
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 71
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 81

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImage.java

Violation Ligne
Private field '_response' could be made final; it is only initialized in the declaration or constructor. 56

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImageFactory.java

Violation Ligne
Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 56
Private field '_wordToImage' could be made final; it is only initialized in the declaration or constructor. 57
Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 58
It is a good practice to call super() in a constructor 6579
A catch statement should never catch throwable since it includes errors. 129
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 135

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/AudioConcat.java

Violation Ligne
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 83

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceBackgroundSoundMixerConfigurator.java

Violation Ligne
Private field '_attenuationValue' could be made final; it is only initialized in the declaration or constructor. 54
Private field '_backgroundSoundFiles' could be made final; it is only initialized in the declaration or constructor. 55

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceGimpySoundFactory.java

Violation Ligne
Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 64
Private field '_word2Sound' could be made final; it is only initialized in the declaration or constructor. 65
Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 66
It is a good practice to call super() in a constructor 7488
It is a good practice to call super() in a constructor 97118

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceSoundConfigurator.java

Violation Ligne
Private field '_location' could be made final; it is only initialized in the declaration or constructor. 47
Private field '_name' could be made final; it is only initialized in the declaration or constructor. 48
Private field '_pitch' could be made final; it is only initialized in the declaration or constructor. 49
Private field '_rate' could be made final; it is only initialized in the declaration or constructor. 50
Private field '_volume' could be made final; it is only initialized in the declaration or constructor. 51

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceWordToSound.java

Violation Ligne
Private field '_minAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 64
Private field '_maxAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 65
Private field '_minWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 66
Private field '_maxWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 67
Private field '_backgroundSoundMixerConfigurator' could be made final; it is only initialized in the declaration or constructor. 68
Private field '_filters' could be made final; it is only initialized in the declaration or constructor. 69
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 158
Avoid variables with short names like is 206
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 238
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 261

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/MixingFloatAudioInputStream.java

Violation Ligne
The class 'MixingFloatAudioInputStream' has a Cyclomatic Complexity of 3 (Highest = 12). 55380
The class 'MixingFloatAudioInputStream' has a Modified Cyclomatic Complexity of 3 (Highest = 11). 55380
The class 'MixingFloatAudioInputStream' has a Standard Cyclomatic Complexity of 3 (Highest = 11). 55380
Private field '_audioInputStreamArray' could be made final; it is only initialized in the declaration or constructor. 57
Private field '_attenuationPerStream' could be made final; it is only initialized in the declaration or constructor. 66
Avoid using redundant field initializer for '_attenuationPerStream' 66
Private field '_attenuationFactor' could be made final; it is only initialized in the declaration or constructor. 73
Private field '_mixBuffer' could be made final; it is only initialized in the declaration or constructor. 75
Private field '_readBuffer' could be made final; it is only initialized in the declaration or constructor. 76
Avoid using Literals in Conditional Statements 159
The method 'read' has a Modified Cyclomatic Complexity of 11. 175278
The method 'read' has a Standard Cyclomatic Complexity of 11. 175278
The method 'read' has a Cyclomatic Complexity of 12. 175278
Avoid really long methods. 175278
Avoid using Literals in Conditional Statements 241
Check the value returned by the skip() method of an InputStream to see if the requested number of bytes has been skipped. 294

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SequenceAudioInputStream.java

Violation Ligne
Private field '_audioInputStreamList' could be made final; it is only initialized in the declaration or constructor. 55

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SoundCaptchaFilter.java

Violation Ligne
Document empty method 8485
Avoid declaring a variable if it is unreferenced before a possible exit point. 103
Do not add empty strings 138

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/EchoFilter.java

Violation Ligne
Do not use the short type 44
Private field '_decay' could be made final; it is only initialized in the declaration or constructor. 46
It is a good practice to call super() in a constructor 6268
Do not use the short type 66
Do not use the short type 118
Do not use the short type 119
Do not use the short type 119
Do not use the short type 136
Do not use the short type 137
Do not use the short type 137

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/FilteredSoundStream.java

Violation Ligne
Private field '_soundFilter' could be made final; it is only initialized in the declaration or constructor. 51
Private field '_sampleSizeInBits' could be made final; it is only initialized in the declaration or constructor. 53
Avoid variables with short names like in 62

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/PitchFilter.java

Violation Ligne
It is a good practice to call super() in a constructor 5559

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/SoundFilter.java

Violation Ligne
Abstract classes should be named AbstractXXX 49153
An empty method in an abstract class should be abstract instead 5760
An empty method in an abstract class should be abstract instead 6972
Do not use the short type 93
Do not use the short type 95
Do not use the short type 107
Do not use the short type 122
Do not use the short type 124
Do not use the short type 136