Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/lutecetools/business/ComponentDependencyHome.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4297

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

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

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

Rule Violation Line
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 Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4282

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

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

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

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

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

Rule Violation Line
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 Line
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 Line
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 Line
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 Line
AvoidReassigningParameters Avoid reassigning parameters such as 'site' 241

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

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 146
GuardLogStatement Logger calls should be surrounded by log level guards. 151

Priority 3

fr/paris/lutece/plugins/lutecetools/business/ComponentDependencyDAO.java

Rule Violation Line
CommentRequired Header comments are required 42100

fr/paris/lutece/plugins/lutecetools/business/ComponentDependencyHome.java

Rule Violation Line
CommentRequired Header comments are required 4297

fr/paris/lutece/plugins/lutecetools/business/IComponentDependencyDAO.java

Rule Violation Line
CommentRequired Header comments are required 4082

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

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 193

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

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

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

Rule Violation Line
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 Line
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 77
CallSuperInConstructor It is a good practice to call super() in a constructor 8386
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 130
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 130
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 147
NonThreadSafeSingleton Singleton is not thread safe 179182
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getRepositories method if you want a default access modifier 200225
DefaultPackage Use explicit scoping instead of the default package private level 200225
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'strOrganization' 210
ConfusingTernary Avoid if (x != y) ..; else ..; 242255
CyclomaticComplexity The method 'fillGitHubErrors(Component)' has a cyclomatic complexity of 10. 267303
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 31 characters appended. 269
AvoidDuplicateLiterals The String literal "github" appears 4 times in this file; the first occurrence is on line 274 274

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

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

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

Rule Violation Line
CommentRequired Header comments are required 3643

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

Rule Violation Line
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 Line
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 Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34857
GodClass Possible God Class (WMC=83, ATFD=98, TCC=9.420%) 73857
CyclomaticComplexity The class 'MavenRepoService' has a total cyclomatic complexity of 83 (highest 12). 73857
UseUnderscoresInNumericLiterals Number 7200000L should separate every third digit with an underscore 118
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). 127
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 142156
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 175
ControlStatementBraces This statement should have braces 175
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 226
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 447494
ConfusingTernary Avoid if (x != y) ..; else ..; 485493
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 504552
CyclomaticComplexity The method 'getSnapshotPomUrl(Component, StringBuilder, String)' has a cyclomatic complexity of 12. 561644
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 629
DefaultPackage Use explicit scoping instead of the default package private level 667680
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getAnchorsList2 method if you want a default access modifier 667680
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 699
ConfusingTernary Avoid if (x != y) ..; else ..; 713742
CommentRequired Public method and constructor comments are required 773776
CommentRequired Public method and constructor comments are required 778781
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 778781
CommentRequired Public method and constructor comments are required 803806

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

Rule Violation Line
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
LinguisticNaming Linguistics Antipattern - The getter 'getLuteceDependencies' should not return void linguistically 109186
CyclomaticComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has a cyclomatic complexity of 15. 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/RedmineService.java

Rule Violation Line
CommentRequired Header comments are required 13106
CommentRequired Public method and constructor comments are required 2531
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 37
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 48
ConfusingTernary Avoid if (x != y) ..; else ..; 57

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

Rule Violation Line
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 Line
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 Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 144
UselessStringValueOf No need to call String.valueOf to append to a string. 167

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

Rule Violation Line
ShortVariable Avoid variables with short names like ci 56
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 65
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 70

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

Rule Violation Line
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 Line
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 Line
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 Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 4479

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

Rule Violation Line
NPathComplexity The method 'viewHome(HttpServletRequest)' has an NPath complexity of 69984 123221
NcssCount The method 'viewHome(HttpServletRequest)' has a NCSS line count of 62. 123221
CyclomaticComplexity The method 'viewHome(HttpServletRequest)' has a cyclomatic complexity of 21. 123221
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 230
ShortVariable Avoid variables with short names like c 241
NPathComplexity The method 'getViewParameters(HttpServletRequest)' has an NPath complexity of 2187 332375
CyclomaticComplexity The method 'getViewParameters(HttpServletRequest)' has a cyclomatic complexity of 15. 332375
ConfusingTernary Avoid if (x != y) ..; else ..; 392
ConfusingTernary Avoid if (x != y) ..; else ..; 393

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

Rule Violation Line
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 Line
CommentRequired Public method and constructor comments are required 8291

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

Rule Violation Line
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 Line
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 Line
CommentRequired Header comments are required 3659

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

Rule Violation Line
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 Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 133

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

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.io.FileNotFoundException' 36

Files

fr/paris/lutece/plugins/lutecetools/business/ComponentDependencyDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42100

fr/paris/lutece/plugins/lutecetools/business/ComponentDependencyHome.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4297
CommentRequired Header comments are required 3 4297

fr/paris/lutece/plugins/lutecetools/business/IComponentDependencyDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4082

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

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 57200
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 63
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 193

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

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

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

Rule Violation Priority Line
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 Line
UnusedImports Avoid unused imports such as 'java.io.FileNotFoundException' 4 36
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 77
CallSuperInConstructor It is a good practice to call super() in a constructor 3 8386
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 130
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 130
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 147
NonThreadSafeSingleton Singleton is not thread safe 3 179182
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getRepositories method if you want a default access modifier 3 200225
DefaultPackage Use explicit scoping instead of the default package private level 3 200225
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'strOrganization' 3 210
ConfusingTernary Avoid if (x != y) ..; else ..; 3 242255
CyclomaticComplexity The method 'fillGitHubErrors(Component)' has a cyclomatic complexity of 10. 3 267303
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 31 characters appended. 3 269
AvoidDuplicateLiterals The String literal "github" appears 4 times in this file; the first occurrence is on line 274 3 274

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

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

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

Rule Violation Priority Line
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 Line
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 Line
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 Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34857
GodClass Possible God Class (WMC=83, ATFD=98, TCC=9.420%) 3 73857
CyclomaticComplexity The class 'MavenRepoService' has a total cyclomatic complexity of 83 (highest 12). 3 73857
UseUnderscoresInNumericLiterals Number 7200000L should separate every third digit with an underscore 3 118
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 127
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 142156
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 175
ControlStatementBraces This statement should have braces 3 175
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 226
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 3 447494
ConfusingTernary Avoid if (x != y) ..; else ..; 3 485493
LinguisticNaming Linguistics Antipattern - The getter 'getPomInfos' should not return void linguistically 3 504552
CyclomaticComplexity The method 'getSnapshotPomUrl(Component, StringBuilder, String)' has a cyclomatic complexity of 12. 3 561644
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 629
DefaultPackage Use explicit scoping instead of the default package private level 3 667680
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getAnchorsList2 method if you want a default access modifier 3 667680
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 699
ConfusingTernary Avoid if (x != y) ..; else ..; 3 713742
CommentRequired Public method and constructor comments are required 3 773776
CommentRequired Public method and constructor comments are required 3 778781
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 778781
CommentRequired Public method and constructor comments are required 3 803806

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

Rule Violation Priority Line
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
LinguisticNaming Linguistics Antipattern - The getter 'getLuteceDependencies' should not return void linguistically 3 109186
CyclomaticComplexity The method 'getLuteceDependencies(Component, String, boolean, StringBuilder)' has a cyclomatic complexity of 15. 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/RedmineService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 13106
CommentRequired Public method and constructor comments are required 3 2531
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 37
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 48
ConfusingTernary Avoid if (x != y) ..; else ..; 3 57

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

Rule Violation Priority Line
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 Line
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 Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 144
UselessStringValueOf No need to call String.valueOf to append to a string. 3 167

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

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4282
ShortVariable Avoid variables with short names like ci 3 56
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 65
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 70

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

Rule Violation Priority Line
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 Line
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 Line
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 Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 4479
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4479

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

Rule Violation Priority Line
NPathComplexity The method 'viewHome(HttpServletRequest)' has an NPath complexity of 69984 3 123221
NcssCount The method 'viewHome(HttpServletRequest)' has a NCSS line count of 62. 3 123221
CyclomaticComplexity The method 'viewHome(HttpServletRequest)' has a cyclomatic complexity of 21. 3 123221
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 230
ShortVariable Avoid variables with short names like c 3 241
NPathComplexity The method 'getViewParameters(HttpServletRequest)' has an NPath complexity of 2187 3 332375
CyclomaticComplexity The method 'getViewParameters(HttpServletRequest)' has a cyclomatic complexity of 15. 3 332375
ConfusingTernary Avoid if (x != y) ..; else ..; 3 392
ConfusingTernary Avoid if (x != y) ..; else ..; 3 393

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

Rule Violation Priority Line
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 Line
CommentRequired Public method and constructor comments are required 3 8291

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

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

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

Rule Violation Priority Line
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 Line
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