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/bandeaugra/business/BannerInformations.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_strFirstName' doesn't match '[a-z][a-zA-Z0-9]*' 52
FormalParameterNamingConventions The method parameter name '_strLastName' doesn't match '[a-z][a-zA-Z0-9]*' 62

fr/paris/lutece/plugins/bandeaugra/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)' 3970

Priority 3

fr/paris/lutece/plugins/bandeaugra/business/BannerInformations.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 4750
CommentRequired Public method and constructor comments are required 5255
CommentRequired Public method and constructor comments are required 5760
CommentRequired Public method and constructor comments are required 6265

fr/paris/lutece/plugins/bandeaugra/rs/BannerInformationsRest.java

Rule Violation Ligne
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 8996
UnusedFormalParameter Avoid unused method parameters such as 'response'. 108
ConfusingTernary Avoid if (x != y) ..; else ..; 115146
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticated' indicates linguistically it returns a boolean, but it returns 'Response' 186199
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 189196
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticatedV1' indicates linguistically it returns a boolean, but it returns 'Response' 208219
UnusedFormalParameter Avoid unused method parameters such as 'response'. 208
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 239246
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 282289
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 329336
UnusedFormalParameter Avoid unused method parameters such as 'response'. 365

fr/paris/lutece/plugins/bandeaugra/rs/Constants.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like ID 56

fr/paris/lutece/plugins/bandeaugra/service/BannerInformationDataClient.java

Rule Violation Ligne
MissingOverride The method 'handleToken(Token, HttpServletRequest, HttpServletResponse)' is missing an @Override annotation. 7298
DefaultPackage Use explicit scoping instead of the default package private level 106112
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the parse method if you want a default access modifier 106112

fr/paris/lutece/plugins/bandeaugra/service/RemoteSiteBandeauClientService.java

Rule Violation Ligne
CommentRequired Header comments are required 1077
RedundantFieldInitializer Avoid using redundant field initializer for '_authenticator' 21
CommentRequired Public method and constructor comments are required 2335
NonThreadSafeSingleton Singleton is not thread safe 2533
CommentRequired Public method and constructor comments are required 3740
CommentRequired Public method and constructor comments are required 4245
CommentRequired Public method and constructor comments are required 4750

Fichiers

fr/paris/lutece/plugins/bandeaugra/business/BannerInformations.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 4750
CommentRequired Public method and constructor comments are required 3 5255
FormalParameterNamingConventions The method parameter name '_strFirstName' doesn't match '[a-z][a-zA-Z0-9]*' 1 52
CommentRequired Public method and constructor comments are required 3 5760
CommentRequired Public method and constructor comments are required 3 6265
FormalParameterNamingConventions The method parameter name '_strLastName' doesn't match '[a-z][a-zA-Z0-9]*' 1 62

fr/paris/lutece/plugins/bandeaugra/rs/BannerInformationsRest.java

Rule Violation Priority Ligne
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 8996
UnusedFormalParameter Avoid unused method parameters such as 'response'. 3 108
ConfusingTernary Avoid if (x != y) ..; else ..; 3 115146
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticated' indicates linguistically it returns a boolean, but it returns 'Response' 3 186199
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 189196
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticatedV1' indicates linguistically it returns a boolean, but it returns 'Response' 3 208219
UnusedFormalParameter Avoid unused method parameters such as 'response'. 3 208
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 239246
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 282289
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 329336
UnusedFormalParameter Avoid unused method parameters such as 'response'. 3 365

fr/paris/lutece/plugins/bandeaugra/rs/Constants.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3970
ShortVariable Avoid variables with short names like ID 3 56

fr/paris/lutece/plugins/bandeaugra/service/BannerInformationDataClient.java

Rule Violation Priority Ligne
MissingOverride The method 'handleToken(Token, HttpServletRequest, HttpServletResponse)' is missing an @Override annotation. 3 7298
DefaultPackage Use explicit scoping instead of the default package private level 3 106112
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the parse method if you want a default access modifier 3 106112

fr/paris/lutece/plugins/bandeaugra/service/RemoteSiteBandeauClientService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 1077
RedundantFieldInitializer Avoid using redundant field initializer for '_authenticator' 3 21
CommentRequired Public method and constructor comments are required 3 2335
NonThreadSafeSingleton Singleton is not thread safe 3 2533
CommentRequired Public method and constructor comments are required 3 3740
CommentRequired Public method and constructor comments are required 3 4245
CommentRequired Public method and constructor comments are required 3 4750