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)' 39–70

Priority 3

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

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 47–50
CommentRequired Public method and constructor comments are required 52–55
CommentRequired Public method and constructor comments are required 57–60
CommentRequired Public method and constructor comments are required 62–65

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. 89–96
UnusedFormalParameter Avoid unused method parameters such as 'response'. 108
ConfusingTernary Avoid if (x != y) ..; else ..; 115–146
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticated' indicates linguistically it returns a boolean, but it returns 'Response' 186–199
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 189–196
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticatedV1' indicates linguistically it returns a boolean, but it returns 'Response' 208–219
UnusedFormalParameter Avoid unused method parameters such as 'response'. 208
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 239–246
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 282–289
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 329–336
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. 72–98
DefaultPackage Use explicit scoping instead of the default package private level 106–112
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the parse method if you want a default access modifier 106–112

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

Rule Violation Ligne
CommentRequired Header comments are required 10–77
RedundantFieldInitializer Avoid using redundant field initializer for '_authenticator' 21
CommentRequired Public method and constructor comments are required 23–35
NonThreadSafeSingleton Singleton is not thread safe 25–33
CommentRequired Public method and constructor comments are required 37–40
CommentRequired Public method and constructor comments are required 42–45
CommentRequired Public method and constructor comments are required 47–50

Fichiers

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

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 47–50
CommentRequired Public method and constructor comments are required 3 52–55
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 57–60
CommentRequired Public method and constructor comments are required 3 62–65
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 89–96
UnusedFormalParameter Avoid unused method parameters such as 'response'. 3 108
ConfusingTernary Avoid if (x != y) ..; else ..; 3 115–146
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticated' indicates linguistically it returns a boolean, but it returns 'Response' 3 186–199
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 189–196
LinguisticNaming Linguistics Antipattern - The method 'isUserAuthenticatedV1' indicates linguistically it returns a boolean, but it returns 'Response' 3 208–219
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 239–246
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 282–289
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 329–336
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 39–70
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 72–98
DefaultPackage Use explicit scoping instead of the default package private level 3 106–112
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the parse method if you want a default access modifier 3 106–112

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

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 10–77
RedundantFieldInitializer Avoid using redundant field initializer for '_authenticator' 3 21
CommentRequired Public method and constructor comments are required 3 23–35
NonThreadSafeSingleton Singleton is not thread safe 3 25–33
CommentRequired Public method and constructor comments are required 3 37–40
CommentRequired Public method and constructor comments are required 3 42–45
CommentRequired Public method and constructor comments are required 3 47–50