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/automaticroleprovider/service/AutomaticRoleConfiguration.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_strLuteceUserAttributeKey' doesn't match '[a-z][a-zA-Z0-9]*' 135
FormalParameterNamingConventions The method parameter name '_strLuteceUserAttributeValue' doesn't match '[a-z][a-zA-Z0-9]*' 153
FormalParameterNamingConventions The method parameter name '_strRole' doesn't match '[a-z][a-zA-Z0-9]*' 171

Priority 3

fr/paris/lutece/plugins/automaticroleprovider/service/AutomaticRoleProvider.java

Rule Violation Ligne
ImmutableField Private field '_listAutomaticRoleConfiguration' could be made final; it is only initialized in the declaration or constructor. 57
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 92
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 113
ConfusingTernary Avoid if (x != y) ..; else ..; 118144

fr/paris/lutece/plugins/automaticroleprovider/service/ConfigurationPredicate.java

Rule Violation Ligne
CommentRequired Header comments are required 712
CommentRequired Public method and constructor comments are required 10
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPredicate': the method is declared in an interface type 10

fr/paris/lutece/plugins/automaticroleprovider/service/EqualsPredicate.java

Rule Violation Ligne
CommentRequired Header comments are required 928
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 11
DefaultPackage Use explicit scoping instead of the default package private level 11
CommentRequired Public method and constructor comments are required 1320
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1718
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 18

fr/paris/lutece/plugins/automaticroleprovider/service/NotEmptyPredicate.java

Rule Violation Ligne
CommentRequired Header comments are required 926
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 11
DefaultPackage Use explicit scoping instead of the default package private level 11
CommentRequired Public method and constructor comments are required 1318

Fichiers

fr/paris/lutece/plugins/automaticroleprovider/service/AutomaticRoleConfiguration.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_strLuteceUserAttributeKey' doesn't match '[a-z][a-zA-Z0-9]*' 1 135
FormalParameterNamingConventions The method parameter name '_strLuteceUserAttributeValue' doesn't match '[a-z][a-zA-Z0-9]*' 1 153
FormalParameterNamingConventions The method parameter name '_strRole' doesn't match '[a-z][a-zA-Z0-9]*' 1 171

fr/paris/lutece/plugins/automaticroleprovider/service/AutomaticRoleProvider.java

Rule Violation Priority Ligne
ImmutableField Private field '_listAutomaticRoleConfiguration' could be made final; it is only initialized in the declaration or constructor. 3 57
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 92
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 113
ConfusingTernary Avoid if (x != y) ..; else ..; 3 118144

fr/paris/lutece/plugins/automaticroleprovider/service/ConfigurationPredicate.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 712
CommentRequired Public method and constructor comments are required 3 10
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPredicate': the method is declared in an interface type 3 10

fr/paris/lutece/plugins/automaticroleprovider/service/EqualsPredicate.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 928
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 3 11
DefaultPackage Use explicit scoping instead of the default package private level 3 11
CommentRequired Public method and constructor comments are required 3 1320
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 1718
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 18

fr/paris/lutece/plugins/automaticroleprovider/service/NotEmptyPredicate.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 926
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 3 11
DefaultPackage Use explicit scoping instead of the default package private level 3 11
CommentRequired Public method and constructor comments are required 3 1318