Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 1

fr/paris/lutece/plugins/lutecetools/service/ComponentService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 51149
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 55

fr/paris/lutece/plugins/lutecetools/service/Globals.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'Globals' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3643
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 3643

fr/paris/lutece/plugins/lutecetools/service/StatsService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4288

fr/paris/lutece/plugins/lutecetools/service/XMLParser.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 62160

fr/paris/lutece/plugins/lutecetools/service/version/VersionUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4479

fr/paris/lutece/plugins/lutecetools/web/rs/ComponentRest.java

Rule Violation Ligne
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 100

fr/paris/lutece/plugins/lutecetools/web/rs/Constants.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3659

fr/paris/lutece/plugins/lutecetools/web/rs/PomBuilderRest.java

Rule Violation Ligne
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 64

fr/paris/lutece/plugins/lutecetools/web/rs/StatsRest.java

Rule Violation Ligne
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 69

Priority 2

fr/paris/lutece/plugins/lutecetools/service/DependenciesService.java

Rule Violation Ligne
AvoidReassigningParameters Avoid reassigning parameters such as 'site' 241

fr/paris/lutece/plugins/lutecetools/service/GitLabService.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 133
GuardLogStatement Logger calls should be surrounded by log level guards. 138139

Priority 3

fr/paris/lutece/plugins/lutecetools/service/ComponentsInfos.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 109117

fr/paris/lutece/plugins/lutecetools/service/DependenciesService.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like sb 201
ShortVariable Avoid variables with short names like sb 224
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 228
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 228
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 250

fr/paris/lutece/plugins/lutecetools/service/GitHubService.java

Rule Violation Ligne
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 74
CallSuperInConstructor It is a good practice to call super() in a constructor 8083
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 141
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 143
NonThreadSafeSingleton Singleton is not thread safe 175178
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getRepositories method if you want a default access modifier 196222
DefaultPackage Use explicit scoping instead of the default package private level 196222
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'strOrganization' 206
ConfusingTernary Avoid if (x != y) ..; else ..; 238251
CyclomaticComplexity The method 'fillGitHubErrors(Component)' has a cyclomatic complexity of 10. 262300
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 31 characters appended. 264
AvoidDuplicateLiterals The String literal "github" appears 4 times in this file; the first occurrence is on line 269 269

fr/paris/lutece/plugins/lutecetools/service/GitLabService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 100103
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 134
DefaultPackage Use explicit scoping instead of the default package private level 151163
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getGroup method if you want a default access modifier 151163

fr/paris/lutece/plugins/lutecetools/service/Globals.java

Rule Violation Ligne
CommentRequired Header comments are required 3643

fr/paris/lutece/plugins/lutecetools/service/JiraService.java

Rule Violation Ligne
CyclomaticComplexity The method 'fill(Component, StringBuilder)' has a cyclomatic complexity of 11. 120206
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 122
ConfusingTernary Avoid if (x != y) ..; else ..; 141148
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 186
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 210 characters appended. 216

fr/paris/lutece/plugins/lutecetools/service/LutecetoolsAsynchronousUploadHandler.java

Rule Violation Ligne
CommentRequired Header comments are required 54277
ShortVariable Avoid variables with short names like s 245
CommentRequired Public method and constructor comments are required 249261
CommentRequired Public method and constructor comments are required 263275

fr/paris/lutece/plugins/lutecetools/service/MavenRepoService.java

Rule Violation Ligne
GodClass Possible God Class (WMC=78, ATFD=92, TCC=10.277%) 66788
UseUnderscoresInNumericLiterals Number 7200000L should separate every third digit with an underscore 111
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 119
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 134148
ControlStatementBraces This statement should have braces 167
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 218
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 439486
ConfusingTernary Avoid if (x != y) ..; else ..; 477485
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 496532
CyclomaticComplexity The method 'getSnapshotPomUrl(Component, StringBuilder, String)' has a cyclomatic complexity of 12. 541624
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 609
DefaultPackage Use explicit scoping instead of the default package private level 647660
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getAnchorsList2 method if you want a default access modifier 647660
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 679
ConfusingTernary Avoid if (x != y) ..; else ..; 693722
CommentRequired Public method and constructor comments are required 753756
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 758761
CommentRequired Public method and constructor comments are required 758761
CommentRequired Public method and constructor comments are required 783786

fr/paris/lutece/plugins/lutecetools/service/PomService.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 92100
NPathComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has an NPath complexity of 490 109186
CyclomaticComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has a cyclomatic complexity of 15. 109186
LinguisticNaming Linguistics Antipattern - The getter 'getLuteceDependencies' should not return void linguistically 109186
ShortVariable Avoid variables with short names like is 117
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 184

fr/paris/lutece/plugins/lutecetools/service/SaxPomHandler.java

Rule Violation Ligne
ImmutableField Private field '_sbScmUrl' could be made final; it is only initialized in the declaration or constructor. 56
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 56
ImmutableField Private field '_sbScmConnection' could be made final; it is only initialized in the declaration or constructor. 57
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 57
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 58
ImmutableField Private field '_sbScmDeveloperConnection' could be made final; it is only initialized in the declaration or constructor. 58
ShortVariable Avoid variables with short names like ch 228
CyclomaticComplexity The method 'characters(char, int, int)' has a cyclomatic complexity of 13. 228265
PositionLiteralsFirstInComparisons Position literals first in String comparisons 238

fr/paris/lutece/plugins/lutecetools/service/SiteInfoService.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 98106
LinguisticNaming Linguistics Antipattern - The getter 'getSiteInfos' should not return void linguistically 116224
ExcessiveMethodLength Avoid really long methods. 116224
NPathComplexity The method 'getSiteInfos(Component, String, String, StringBuilder)' has an NPath complexity of 4034 116224
CyclomaticComplexity The method 'getSiteInfos(Component, String, String, StringBuilder)' has a cyclomatic complexity of 19. 116224
ShortVariable Avoid variables with short names like is 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 220

fr/paris/lutece/plugins/lutecetools/service/SonarService.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 122
UselessStringValueOf No need to call String.valueOf to append to a string. 153

fr/paris/lutece/plugins/lutecetools/service/StatsService.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like ci 56
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 66
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 71

fr/paris/lutece/plugins/lutecetools/service/XMLParser.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 90103
ConfusingTernary Avoid if (x != y) ..; else ..; 131138

fr/paris/lutece/plugins/lutecetools/service/version/Version.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 132141
CommentRequired Public method and constructor comments are required 143187
ConfusingTernary Avoid if (x != y) ..; else ..; 169180
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 182

fr/paris/lutece/plugins/lutecetools/service/version/VersionParsingException.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3945
CommentRequired Public method and constructor comments are required 4144

fr/paris/lutece/plugins/lutecetools/service/version/VersionUtils.java

Rule Violation Ligne
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 4479

fr/paris/lutece/plugins/lutecetools/web/ComponentListApp.java

Rule Violation Ligne
CyclomaticComplexity The method 'viewHome(HttpServletRequest)' has a cyclomatic complexity of 10. 110171
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 180
ShortVariable Avoid variables with short names like c 191

fr/paris/lutece/plugins/lutecetools/web/CreateSitePomApp.java

Rule Violation Ligne
RedundantFieldInitializer Avoid using redundant field initializer for '_bGenerated' 64
CommentRequired Public method and constructor comments are required 8594
CommentRequired Public method and constructor comments are required 97104
CommentRequired Public method and constructor comments are required 107110

fr/paris/lutece/plugins/lutecetools/web/DependenciesUpgradeApp.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 8291

fr/paris/lutece/plugins/lutecetools/web/PomUpdateApp.java

Rule Violation Ligne
ImmutableField Private field '_lutecetoolsAsynchronousUploadHandler' could be made final; it is only initialized in the declaration or constructor. 74
CommentRequired Public method and constructor comments are required 102132
ConfusingTernary Avoid if (x != y) ..; else ..; 106129

fr/paris/lutece/plugins/lutecetools/web/rs/ComponentRest.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34381
CommentRequired Public method and constructor comments are required 104121
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 183185
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 45 characters appended. 223
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 239
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 279
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 321

fr/paris/lutece/plugins/lutecetools/web/rs/Constants.java

Rule Violation Ligne
CommentRequired Header comments are required 3659

fr/paris/lutece/plugins/lutecetools/web/rs/StatsRest.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 73103
ConfusingTernary Avoid if (x != y) ..; else ..; 79100

Priority 4

fr/paris/lutece/plugins/lutecetools/service/DependenciesService.java

Rule Violation Ligne
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 133

Fichiers

fr/paris/lutece/plugins/lutecetools/service/ComponentService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 51149
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 55

fr/paris/lutece/plugins/lutecetools/service/ComponentsInfos.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 109117

fr/paris/lutece/plugins/lutecetools/service/DependenciesService.java

Rule Violation Priority Ligne
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 133
ShortVariable Avoid variables with short names like sb 3 201
ShortVariable Avoid variables with short names like sb 3 224
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 228
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 228
AvoidReassigningParameters Avoid reassigning parameters such as 'site' 2 241
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 250

fr/paris/lutece/plugins/lutecetools/service/GitHubService.java

Rule Violation Priority Ligne
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 74
CallSuperInConstructor It is a good practice to call super() in a constructor 3 8083
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 141
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 143
NonThreadSafeSingleton Singleton is not thread safe 3 175178
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getRepositories method if you want a default access modifier 3 196222
DefaultPackage Use explicit scoping instead of the default package private level 3 196222
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'strOrganization' 3 206
ConfusingTernary Avoid if (x != y) ..; else ..; 3 238251
CyclomaticComplexity The method 'fillGitHubErrors(Component)' has a cyclomatic complexity of 10. 3 262300
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 31 characters appended. 3 264
AvoidDuplicateLiterals The String literal "github" appears 4 times in this file; the first occurrence is on line 269 3 269

fr/paris/lutece/plugins/lutecetools/service/GitLabService.java

Rule Violation Priority Ligne
NonThreadSafeSingleton Singleton is not thread safe 3 100103
GuardLogStatement Logger calls should be surrounded by log level guards. 2 133
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 134
GuardLogStatement Logger calls should be surrounded by log level guards. 2 138139
DefaultPackage Use explicit scoping instead of the default package private level 3 151163
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getGroup method if you want a default access modifier 3 151163

fr/paris/lutece/plugins/lutecetools/service/Globals.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3643
ClassNamingConventions The utility class name 'Globals' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3643
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 3643

fr/paris/lutece/plugins/lutecetools/service/JiraService.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'fill(Component, StringBuilder)' has a cyclomatic complexity of 11. 3 120206
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 122
ConfusingTernary Avoid if (x != y) ..; else ..; 3 141148
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 186
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 210 characters appended. 3 216

fr/paris/lutece/plugins/lutecetools/service/LutecetoolsAsynchronousUploadHandler.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 54277
ShortVariable Avoid variables with short names like s 3 245
CommentRequired Public method and constructor comments are required 3 249261
CommentRequired Public method and constructor comments are required 3 263275

fr/paris/lutece/plugins/lutecetools/service/MavenRepoService.java

Rule Violation Priority Ligne
GodClass Possible God Class (WMC=78, ATFD=92, TCC=10.277%) 3 66788
UseUnderscoresInNumericLiterals Number 7200000L should separate every third digit with an underscore 3 111
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 119
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 134148
ControlStatementBraces This statement should have braces 3 167
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 218
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 3 439486
ConfusingTernary Avoid if (x != y) ..; else ..; 3 477485
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 3 496532
CyclomaticComplexity The method 'getSnapshotPomUrl(Component, StringBuilder, String)' has a cyclomatic complexity of 12. 3 541624
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 609
DefaultPackage Use explicit scoping instead of the default package private level 3 647660
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getAnchorsList2 method if you want a default access modifier 3 647660
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 679
ConfusingTernary Avoid if (x != y) ..; else ..; 3 693722
CommentRequired Public method and constructor comments are required 3 753756
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 758761
CommentRequired Public method and constructor comments are required 3 758761
CommentRequired Public method and constructor comments are required 3 783786

fr/paris/lutece/plugins/lutecetools/service/PomService.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 92100
NPathComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has an NPath complexity of 490 3 109186
CyclomaticComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has a cyclomatic complexity of 15. 3 109186
LinguisticNaming Linguistics Antipattern - The getter 'getLuteceDependencies' should not return void linguistically 3 109186
ShortVariable Avoid variables with short names like is 3 117
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 184

fr/paris/lutece/plugins/lutecetools/service/SaxPomHandler.java

Rule Violation Priority Ligne
ImmutableField Private field '_sbScmUrl' could be made final; it is only initialized in the declaration or constructor. 3 56
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 56
ImmutableField Private field '_sbScmConnection' could be made final; it is only initialized in the declaration or constructor. 3 57
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 57
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 58
ImmutableField Private field '_sbScmDeveloperConnection' could be made final; it is only initialized in the declaration or constructor. 3 58
ShortVariable Avoid variables with short names like ch 3 228
CyclomaticComplexity The method 'characters(char, int, int)' has a cyclomatic complexity of 13. 3 228265
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 238

fr/paris/lutece/plugins/lutecetools/service/SiteInfoService.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 98106
LinguisticNaming Linguistics Antipattern - The getter 'getSiteInfos' should not return void linguistically 3 116224
ExcessiveMethodLength Avoid really long methods. 3 116224
NPathComplexity The method 'getSiteInfos(Component, String, String, StringBuilder)' has an NPath complexity of 4034 3 116224
CyclomaticComplexity The method 'getSiteInfos(Component, String, String, StringBuilder)' has a cyclomatic complexity of 19. 3 116224
ShortVariable Avoid variables with short names like is 3 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 220

fr/paris/lutece/plugins/lutecetools/service/SonarService.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 122
UselessStringValueOf No need to call String.valueOf to append to a string. 3 153

fr/paris/lutece/plugins/lutecetools/service/StatsService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4288
ShortVariable Avoid variables with short names like ci 3 56
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 66
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 71

fr/paris/lutece/plugins/lutecetools/service/XMLParser.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 62160
CommentRequired Public method and constructor comments are required 3 90103
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131138

fr/paris/lutece/plugins/lutecetools/service/version/Version.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 132141
CommentRequired Public method and constructor comments are required 3 143187
ConfusingTernary Avoid if (x != y) ..; else ..; 3 169180
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 182

fr/paris/lutece/plugins/lutecetools/service/version/VersionParsingException.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 3945
CommentRequired Public method and constructor comments are required 3 4144

fr/paris/lutece/plugins/lutecetools/service/version/VersionUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4479
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 4479

fr/paris/lutece/plugins/lutecetools/web/ComponentListApp.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'viewHome(HttpServletRequest)' has a cyclomatic complexity of 10. 3 110171
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 180
ShortVariable Avoid variables with short names like c 3 191

fr/paris/lutece/plugins/lutecetools/web/CreateSitePomApp.java

Rule Violation Priority Ligne
RedundantFieldInitializer Avoid using redundant field initializer for '_bGenerated' 3 64
CommentRequired Public method and constructor comments are required 3 8594
CommentRequired Public method and constructor comments are required 3 97104
CommentRequired Public method and constructor comments are required 3 107110

fr/paris/lutece/plugins/lutecetools/web/DependenciesUpgradeApp.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 8291

fr/paris/lutece/plugins/lutecetools/web/PomUpdateApp.java

Rule Violation Priority Ligne
ImmutableField Private field '_lutecetoolsAsynchronousUploadHandler' could be made final; it is only initialized in the declaration or constructor. 3 74
CommentRequired Public method and constructor comments are required 3 102132
ConfusingTernary Avoid if (x != y) ..; else ..; 3 106129

fr/paris/lutece/plugins/lutecetools/web/rs/ComponentRest.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34381
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 100
CommentRequired Public method and constructor comments are required 3 104121
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 183185
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 45 characters appended. 3 223
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 239
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 279
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 321

fr/paris/lutece/plugins/lutecetools/web/rs/Constants.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3659
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3659

fr/paris/lutece/plugins/lutecetools/web/rs/PomBuilderRest.java

Rule Violation Priority Ligne
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 64

fr/paris/lutece/plugins/lutecetools/web/rs/StatsRest.java

Rule Violation Priority Ligne
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 69
CommentRequired Public method and constructor comments are required 3 73103
ConfusingTernary Avoid if (x != y) ..; else ..; 3 79100