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/wiki/service/ContentDeserializer.java

Rule Violation Line
FieldNamingConventions The field name 'topicVersion' doesn't match '_[a-z][a-zA-Z0-9]*' 10
FieldNamingConventions The field name 'parentPageName' doesn't match '_[a-z][a-zA-Z0-9]*' 11
FieldNamingConventions The field name 'topicId' doesn't match '_[a-z][a-zA-Z0-9]*' 12
FieldNamingConventions The field name 'topicTitle' doesn't match '_[a-z][a-zA-Z0-9]*' 13
FieldNamingConventions The field name 'topicContent' doesn't match '_[a-z][a-zA-Z0-9]*' 15
FieldNamingConventions The field name 'language' doesn't match '_[a-z][a-zA-Z0-9]*' 17
FieldNamingConventions The field name 'wikiHtmlContent' doesn't match '_[a-z][a-zA-Z0-9]*' 19
FieldNamingConventions The field name 'wikiPageUrl' doesn't match '_[a-z][a-zA-Z0-9]*' 21
FieldNamingConventions The field name 'editComment' doesn't match '_[a-z][a-zA-Z0-9]*' 22
FieldNamingConventions The field name 'viewRole' doesn't match '_[a-z][a-zA-Z0-9]*' 24
FieldNamingConventions The field name 'editRole' doesn't match '_[a-z][a-zA-Z0-9]*' 26
FieldNamingConventions The field name 'topicPageName' doesn't match '_[a-z][a-zA-Z0-9]*' 28

fr/paris/lutece/plugins/wiki/service/parser/LuteceHtmlParser.java

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

fr/paris/lutece/plugins/wiki/service/parser/SpecialChar.java

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

fr/paris/lutece/plugins/wiki/service/parser/WikiCreoleToMarkdown.java

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

fr/paris/lutece/plugins/wiki/utils/auth/WikiAnonymousAuthentication.java

Rule Violation Line
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 108111

fr/paris/lutece/plugins/wiki/web/Constants.java

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

fr/paris/lutece/plugins/wiki/web/WikiDynamicInputs.java

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

ys/wikiparser/Utils.java

Rule Violation Line
ClassNamingConventions The utility class name 'Utils' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 32410
FieldNamingConventions The static field name 'entities' doesn't match '_[a-z][a-zA-Z0-9]*' 34
FieldNamingConventions The constant name 'translitTable' doesn't match '[A-Z][A-Z_0-9]*' 35

ys/wikiparser/WikiParser.java

Rule Violation Line
FieldNamingConventions The field name 'wikiLength' doesn't match '_[a-z][a-zA-Z0-9]*' 63
FieldNamingConventions The field name 'wikiChars' doesn't match '_[a-z][a-zA-Z0-9]*' 64
FieldNamingConventions The field name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 65
FieldNamingConventions The field name 'toc' doesn't match '_[a-z][a-zA-Z0-9]*' 66
FieldNamingConventions The field name 'tocLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 67
FieldNamingConventions The field name 'tocAnchorIds' doesn't match '_[a-z][a-zA-Z0-9]*' 68
FieldNamingConventions The field name 'wikiText' doesn't match '_[a-z][a-zA-Z0-9]*' 69
FieldNamingConventions The field name 'pos' doesn't match '_[a-z][a-zA-Z0-9]*' 70
FieldNamingConventions The field name 'listLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 71
FieldNamingConventions The field name 'listLevels' doesn't match '_[a-z][a-zA-Z0-9]*' 72
FieldNamingConventions The field name 'blockquoteBR' doesn't match '_[a-z][a-zA-Z0-9]*' 73
FieldNamingConventions The field name 'inTable' doesn't match '_[a-z][a-zA-Z0-9]*' 74
FieldNamingConventions The field name 'mediawikiTableLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 75
FieldNamingConventions The field name 'HEADING_LEVEL_SHIFT' doesn't match '_[a-z][a-zA-Z0-9]*' 76
FieldNamingConventions The field name 'HEADING_ID_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 77
ConstructorCallsOverridableMethod Overridable method 'parse' called during object construction 90
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 647691
FieldNamingConventions The field name 'position' doesn't match '_[a-z][a-zA-Z0-9]*' 1243

Priority 2

fr/paris/lutece/plugins/wiki/search/WikiSearchEngine.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'strQuery' 81

fr/paris/lutece/plugins/wiki/service/PathService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'topic' 60

fr/paris/lutece/plugins/wiki/service/parser/LuteceHtmlParser.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'htmlFromEditor' 47

fr/paris/lutece/plugins/wiki/service/parser/SpecialChar.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 26

fr/paris/lutece/plugins/wiki/service/parser/WikiCreoleToMarkdown.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 48

fr/paris/lutece/plugins/wiki/web/WikiApp.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'topic' 997

ys/wikiparser/Utils.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'text' 64

ys/wikiparser/WikiParser.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'wikiText' 115
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 613

Priority 3

fr/paris/lutece/plugins/wiki/business/ITopicVersionDAO.java

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

fr/paris/lutece/plugins/wiki/business/Image.java

Rule Violation Line
MethodReturnsInternalArray Returning '_byValue' may expose an internal array. 99
ArrayIsStoredDirectly The user-supplied array 'value' is stored directly. 108

fr/paris/lutece/plugins/wiki/business/ImageDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 88104

fr/paris/lutece/plugins/wiki/business/TopicDAO.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The setter 'setTopicWithDaoUtil' should not return any type except void linguistically 199208

fr/paris/lutece/plugins/wiki/business/TopicVersion.java

Rule Violation Line
ImmutableField Private field '_mapWikiContent' could be made final; it is only initialized in the declaration or constructor. 55
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 55

fr/paris/lutece/plugins/wiki/business/TopicVersionDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 45323
CommentRequired Public method and constructor comments are required 6879
LinguisticNaming Linguistics Antipattern - The setter 'setTopicVersionWithDaoUtil' should not return any type except void linguistically 310320

fr/paris/lutece/plugins/wiki/business/TopicVersionHome.java

Rule Violation Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the removeByTopic method if you want a default access modifier 9093
DefaultPackage Use explicit scoping instead of the default package private level 9093

fr/paris/lutece/plugins/wiki/search/WikiIndexer.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 194
ConfusingTernary Avoid if (x != y) ..; else ..; 247252

fr/paris/lutece/plugins/wiki/search/WikiSearchEngine.java

Rule Violation Line
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 113119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 121

fr/paris/lutece/plugins/wiki/service/ContentDeserializer.java

Rule Violation Line
CommentRequired Header comments are required 792
DataClass The class 'ContentDeserializer' is suspected to be a Data Class (WOC=7.692%, NOPA=12, NOAM=12, WMC=14) 792
CommentRequired Public method and constructor comments are required 8291

fr/paris/lutece/plugins/wiki/service/DiffService.java

Rule Violation Line
AvoidDuplicateLiterals The String literal "diff" appears 5 times in this file; the first occurrence is on line 99 99
AvoidDuplicateLiterals The String literal "diffreport" appears 4 times in this file; the first occurrence is on line 117 117
AvoidDuplicateLiterals The String literal "css" appears 4 times in this file; the first occurrence is on line 154 154
AvoidDuplicateLiterals The String literal "link" appears 4 times in this file; the first occurrence is on line 162 162

fr/paris/lutece/plugins/wiki/service/ImageService.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'PLUGIN_NAME'. 50

fr/paris/lutece/plugins/wiki/service/PathService.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 49107

fr/paris/lutece/plugins/wiki/service/RoleService.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 104107

fr/paris/lutece/plugins/wiki/service/WikiDiff.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 46169

fr/paris/lutece/plugins/wiki/service/WikiExtendableResourceService.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as '_plugin'. 60

fr/paris/lutece/plugins/wiki/service/WikiService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 5356
ConfusingTernary Avoid if (x != y) ..; else ..; 101
ConfusingTernary Avoid if (x != y) ..; else ..; 108115
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 117
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 117

fr/paris/lutece/plugins/wiki/service/WikiUtils.java

Rule Violation Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 56

fr/paris/lutece/plugins/wiki/service/parser/LuteceHtmlParser.java

Rule Violation Line
CommentRequired Header comments are required 42168
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 43168
CommentRequired Public method and constructor comments are required 4795
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 59
ConfusingTernary Avoid if (x != y) ..; else ..; 7494
AvoidDuplicateLiterals The String literal "div" appears 4 times in this file; the first occurrence is on line 79 79
CommentRequired Public method and constructor comments are required 97166
CyclomaticComplexity The method 'createTableOfContent(Element, String, String)' has a cyclomatic complexity of 10. 97166
PositionLiteralsFirstInComparisons Position literals first in String comparisons 120
PositionLiteralsFirstInComparisons Position literals first in String comparisons 148
PositionLiteralsFirstInComparisons Position literals first in String comparisons 148

fr/paris/lutece/plugins/wiki/service/parser/LuteceWikiParser.java

Rule Violation Line
ImmutableField Private field '_strPageName' could be made final; it is only initialized in the declaration or constructor. 67
ImmutableField Private field '_strPageUrl' could be made final; it is only initialized in the declaration or constructor. 68
ImmutableField Private field '_strLanguage' could be made final; it is only initialized in the declaration or constructor. 69
CyclomaticComplexity The method 'appendImage(String)' has a cyclomatic complexity of 12. 129196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 134
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 135
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 136
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 137
MissingBreakInSwitch A switch statement does not contain a break 149161
SwitchStmtsShouldHaveDefault Switch statements should have a default label 149161
AvoidDuplicateLiterals The String literal "\" " appears 6 times in this file; the first occurrence is on line 164 164
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 166
CyclomaticComplexity The method 'appendLink(String)' has a cyclomatic complexity of 12. 202259
InefficientEmptyStringCheck String.trim().length() == 0 / String.trim().isEmpty() is an inefficient way to validate a blank String. 247

fr/paris/lutece/plugins/wiki/service/parser/SpecialChar.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 344
CommentRequired Header comments are required 344
CommentRequired Public method and constructor comments are required 2641

fr/paris/lutece/plugins/wiki/service/parser/WikiCreoleToMarkdown.java

Rule Violation Line
CommentRequired Header comments are required 45206
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 46206
CommentRequired Public method and constructor comments are required 4870
CommentRequired Public method and constructor comments are required 72204
CyclomaticComplexity The method 'wikiCreoleToMd(String, String, String, String)' has a cyclomatic complexity of 13. 72204
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 72
NcssCount The method 'wikiCreoleToMd(String, String, String, String)' has a NCSS line count of 88. 72204
ExcessiveMethodLength Avoid really long methods. 72204
AvoidDuplicateLiterals The String literal "$$span" appears 8 times in this file; the first occurrence is on line 85 85
AvoidDuplicateLiterals The String literal "class" appears 5 times in this file; the first occurrence is on line 97 97
ShortVariable Avoid variables with short names like p 111
ConfusingTernary Avoid if (x != y) ..; else ..; 117175
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 124
StringToString Avoid calling toString() on String objects; this is unnecessary. 132
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 133
ShortVariable Avoid variables with short names like p 134
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 137
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 142
ShortVariable Avoid variables with short names like p 143
StringToString Avoid calling toString() on String objects; this is unnecessary. 160
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 161
ShortVariable Avoid variables with short names like p 162
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 170
ShortVariable Avoid variables with short names like p 171
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'line' 192
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'line' 193
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 196
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 200

fr/paris/lutece/plugins/wiki/service/parser/WikiMacroService.java

Rule Violation Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 109

fr/paris/lutece/plugins/wiki/utils/auth/WikiAnonymousAuthentication.java

Rule Violation Line
UncommentedEmptyMethodBody Document empty method body 8384
UncommentedEmptyMethodBody Document empty method body 309310

fr/paris/lutece/plugins/wiki/utils/auth/WikiAnonymousUser.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4584

fr/paris/lutece/plugins/wiki/web/WikiApp.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341232
GodClass Possible God Class (WMC=52, ATFD=52, TCC=4.735%) 951232
ExcessiveClassLength Avoid really long classes. 951232
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 951232
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 179
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 193
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 215
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 248
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 432
UnusedLocalVariable Avoid unused local variables such as 'nVersion'. 432
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 450
ConfusingTernary Avoid if (x != y) ..; else ..; 463472
ShortVariable Avoid variables with short names like sb 510
AssignmentInOperand Avoid assignments in operands 513
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 535
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'page' 645
CyclomaticComplexity The method 'doUploadImage(HttpServletRequest)' has a cyclomatic complexity of 11. 658708
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 670
ConfusingTernary Avoid if (x != y) ..; else ..; 687695
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 808
ConfusingTernary Avoid if (x != y) ..; else ..; 892902
CyclomaticComplexity The method 'getPageExtendedPath(Topic, HttpServletRequest)' has a cyclomatic complexity of 11. 9971047
CollapsibleIfStatements These nested if statements could be combined 10251029
ConfusingTernary Avoid if (x != y) ..; else ..; 10971105
ConfusingTernary Avoid if (x != y) ..; else ..; 11611172

fr/paris/lutece/plugins/wiki/web/WikiDynamicInputs.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 59145
CommentRequired Public method and constructor comments are required 62144
ShortVariable Avoid variables with short names like sb 64
AssignmentInOperand Avoid assignments in operands 67
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 131
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 136

ys/wikiparser/Utils.java

Rule Violation Line
CommentRequired Header comments are required 32410
TooManyMethods This class has too many methods, consider refactoring it. 33410
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 33410
RedundantFieldInitializer Avoid using redundant field initializer for 'entities' 34
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 34
CommentRequired Public method and constructor comments are required 3750
ShortVariable Avoid variables with short names like c 37
ShortVariable Avoid variables with short names like c 52
CommentRequired Public method and constructor comments are required 5255
ShortVariable Avoid variables with short names like sb 77
ShortVariable Avoid variables with short names like c 83
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 85
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'p' 90
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 98
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 107
CommentRequired Public method and constructor comments are required 127172
ShortVariable Avoid variables with short names like s 127
ShortVariable Avoid variables with short names like sb 134
ShortVariable Avoid variables with short names like ch 139
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 141
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 146
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 151
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 156
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 161
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 174201
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 178
CommentRequired Public method and constructor comments are required 203268
CyclomaticComplexity The method 'unescapeHTML(String)' has a cyclomatic complexity of 11. 203268
ShortVariable Avoid variables with short names like sb 216
ShortVariable Avoid variables with short names like c 221
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 223
ShortVariable Avoid variables with short names like ce 225
ShortVariable Avoid variables with short names like i1 226
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 230
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 232
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 254
CommentRequired Public method and constructor comments are required 270280
ShortVariable Avoid variables with short names like s 270
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 276
CommentRequired Public method and constructor comments are required 282292
ShortVariable Avoid variables with short names like s 282
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 288
CommentRequired Public method and constructor comments are required 294311
ShortVariable Avoid variables with short names like to 294
ShortVariable Avoid variables with short names like i1 298
ShortVariable Avoid variables with short names like i2 299
AssignmentInOperand Avoid assignments in operands 301
ShortVariable Avoid variables with short names like s 313
CommentRequired Public method and constructor comments are required 313336
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 321
AssignmentInOperand Avoid assignments in operands 325
ShortVariable Avoid variables with short names like a 333
CyclomaticComplexity The method 'translit(String)' has a cyclomatic complexity of 17. 346389
ShortVariable Avoid variables with short names like s 346
ShortVariable Avoid variables with short names like sb 353
ShortVariable Avoid variables with short names like ch 359
ShortVariable Avoid variables with short names like c 365
CommentRequired Public method and constructor comments are required 391394
ShortVariable Avoid variables with short names like s 391
CommentRequired Public method and constructor comments are required 396399
ShortVariable Avoid variables with short names like s 396
ShortVariable Avoid variables with short names like s 401
CommentRequired Public method and constructor comments are required 401404
CommentRequired Public method and constructor comments are required 406409
ShortVariable Avoid variables with short names like s 406

ys/wikiparser/WikiParser.java

Rule Violation Line
ExcessiveClassLength Avoid really long classes. 401266
CyclomaticComplexity The class 'WikiParser' has a total cyclomatic complexity of 284 (highest 112). 401266
TooManyFields Too many fields 401266
TooManyMethods This class has too many methods, consider refactoring it. 411266
AvoidDuplicateLiterals The String literal "}}}" appears 4 times in this file; the first occurrence is on line 44 44
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). 65
ShortVariable Avoid variables with short names like sb 65
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 150 characters appended. 65
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 46 characters appended. 66
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). 66
RedundantFieldInitializer Avoid using redundant field initializer for 'tocLevel' 67
LooseCoupling Avoid using implementation types like 'HashSet'; use the interface instead 68
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 68
ImmutableField Private field 'tocAnchorIds' could be made final; it is only initialized in the declaration or constructor. 68
RedundantFieldInitializer Avoid using redundant field initializer for 'pos' 70
RedundantFieldInitializer Avoid using redundant field initializer for 'blockquoteBR' 73
RedundantFieldInitializer Avoid using redundant field initializer for 'inTable' 74
RedundantFieldInitializer Avoid using redundant field initializer for 'mediawikiTableLevel' 75
RedundantFieldInitializer Avoid using redundant field initializer for 'HEADING_ID_PREFIX' 77
CommentRequired Protected method constructor comments are required 8286
CommentRequired Protected method constructor comments are required 8891
CommentRequired Protected method constructor comments are required 9396
CommentRequired Protected method constructor comments are required 99102
CommentRequired Protected method constructor comments are required 105108
CommentRequired Public method and constructor comments are required 110113
CommentRequired Protected method constructor comments are required 115133
ControlStatementBraces This statement should have braces 124125
EmptyWhileStmt Avoid empty while statements 125
ControlStatementBraces This statement should have braces 129130
AssignmentInOperand Avoid assignments in operands 129
MissingOverride The method 'toString()' is missing an @Override annotation. 135138
CommentRequired Public method and constructor comments are required 135138
CyclomaticComplexity The method 'parseBlock()' has a cyclomatic complexity of 81. 155457
NPathComplexity The method 'parseBlock()' has an NPath complexity of 6386688 155457
ExcessiveMethodLength Avoid really long methods. 155457
NcssCount The method 'parseBlock()' has a NCSS line count of 146. 155457
ControlStatementBraces This statement should have braces 157158
ShortVariable Avoid variables with short names like c 165
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 167
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 175
ShortVariable Avoid variables with short names like pp 180
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 187
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 193197
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 193
ControlStatementBraces This statement should have braces 199200
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 207210
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 222
ShortVariable Avoid variables with short names like lc 242
ControlStatementBraces This statement should have braces 245246
ShortVariable Avoid variables with short names like cc 269
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 290
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 306
ShortVariable Avoid variables with short names like hc 309
ControlStatementBraces This statement should have braces 312313
ShortVariable Avoid variables with short names like p 320
ControlStatementBraces This statement should have braces 322323
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 341
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 353
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 358
ShortVariable Avoid variables with short names like pp 377
ControlStatementBraces This statement should have braces 379380
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 384
ShortVariable Avoid variables with short names like p 395
ControlStatementBraces This statement should have braces 397398
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 409
CollapsibleIfStatements These nested if statements could be combined 412449
ShortVariable Avoid variables with short names like nc 414
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 436
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 441
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 452
ControlStatementBraces This statement should have braces 480481
NPathComplexity The method 'parseTableRow(int)' has an NPath complexity of 5762 531606
CyclomaticComplexity The method 'parseTableRow(int)' has a cyclomatic complexity of 18. 531606
ControlStatementBraces This statement should have braces 546547
ShortVariable Avoid variables with short names like th 552
ControlStatementBraces This statement should have braces 555556
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 567
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 587
ControlStatementBraces This statement should have braces 615616
NPathComplexity The method 'checkURI(int, int, int)' has an NPath complexity of 290 647691
ShortVariable Avoid variables with short names like p 647
CyclomaticComplexity The method 'checkURI(int, int, int)' has a cyclomatic complexity of 15. 647691
ShortVariable Avoid variables with short names like pb 652
ControlStatementBraces This statement should have braces 654655
ShortVariable Avoid variables with short names like pe 657
ControlStatementBraces This statement should have braces 659660
ControlStatementBraces This statement should have braces 666667
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'e' 701
NPathComplexity The method 'parseItemThrow(int, String, ContextType)' has an NPath complexity of 18711842 7051103
ExcessiveMethodLength Avoid really long methods. 7051103
CyclomaticComplexity The method 'parseItemThrow(int, String, ContextType)' has a cyclomatic complexity of 112. 7051103
NcssCount The method 'parseItemThrow(int, String, ContextType)' has a NCSS line count of 185. 7051103
ShortVariable Avoid variables with short names like tb 707
ShortVariable Avoid variables with short names like p 710
CollapsibleIfStatements These nested if statements could be combined 724729
ShortVariable Avoid variables with short names like c 732
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 736
ControlStatementBraces This statement should have braces 750751
ShortVariable Avoid variables with short names like pp 764
ControlStatementBraces This statement should have braces 766767
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 799
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 804
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 809
CollapsibleIfStatements These nested if statements could be combined 812823
ShortVariable Avoid variables with short names like pp 814
ControlStatementBraces This statement should have braces 816817
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 832
CollapsibleIfStatements These nested if statements could be combined 834838
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 843
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 859
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 864
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 910
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 929
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 942
CollapsibleIfStatements These nested if statements could be combined 946960
AssignmentInOperand Avoid assignments in operands 964
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 971
ShortVariable Avoid variables with short names like pb 978
ShortVariable Avoid variables with short names like pe 979
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1013
CollapsibleIfStatements These nested if statements could be combined 10201064
ShortVariable Avoid variables with short names like nc 1022
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1048
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1053
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1079
CollapsibleIfStatements These nested if statements could be combined 10821091
CommentRequired Protected method constructor comments are required 11051117
CommentRequired Protected method constructor comments are required 11191144
EmptyCatchBlock Avoid empty catch blocks 11281130
CommentRequired Protected method constructor comments are required 11461170
EmptyCatchBlock Avoid empty catch blocks 11551157
CommentRequired Protected method constructor comments are required 11721175
CommentRequired Protected method constructor comments are required 11771192
ShortVariable Avoid variables with short names like i 1179
ShortVariable Avoid variables with short names like id 1180
ConfusingTernary Avoid if (x != y) ..; else ..; 1180
CommentRequired Protected method constructor comments are required 11941216
CommentRequired Protected method constructor comments are required 12181233
AssignmentInOperand Avoid assignments in operands 1229
CommentRequired Protected method constructor comments are required 12351238
CommentRequired Header comments are required 12401250
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the position field if you want a default access modifier 1243
DefaultPackage Use explicit scoping instead of the default package private level 1243
CommentRequired Public method and constructor comments are required 12451249
CommentRequired Header comments are required 12521260
CommentRequired Public method and constructor comments are required 12561259
CommentRequired Enum comments are required 12621265
UnnecessaryModifier Unnecessary modifier 'static' on enum 'ContextType': nested enums are implicitly static 12621265

Priority 4

fr/paris/lutece/plugins/wiki/service/WikiDiff.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 8184

Files

fr/paris/lutece/plugins/wiki/business/ITopicVersionDAO.java

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

fr/paris/lutece/plugins/wiki/business/Image.java

Rule Violation Priority Line
MethodReturnsInternalArray Returning '_byValue' may expose an internal array. 3 99
ArrayIsStoredDirectly The user-supplied array 'value' is stored directly. 3 108

fr/paris/lutece/plugins/wiki/business/ImageDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 88104

fr/paris/lutece/plugins/wiki/business/TopicDAO.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The setter 'setTopicWithDaoUtil' should not return any type except void linguistically 3 199208

fr/paris/lutece/plugins/wiki/business/TopicVersion.java

Rule Violation Priority Line
ImmutableField Private field '_mapWikiContent' could be made final; it is only initialized in the declaration or constructor. 3 55
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 55

fr/paris/lutece/plugins/wiki/business/TopicVersionDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 45323
CommentRequired Public method and constructor comments are required 3 6879
LinguisticNaming Linguistics Antipattern - The setter 'setTopicVersionWithDaoUtil' should not return any type except void linguistically 3 310320

fr/paris/lutece/plugins/wiki/business/TopicVersionHome.java

Rule Violation Priority Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the removeByTopic method if you want a default access modifier 3 9093
DefaultPackage Use explicit scoping instead of the default package private level 3 9093

fr/paris/lutece/plugins/wiki/search/WikiIndexer.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 194
ConfusingTernary Avoid if (x != y) ..; else ..; 3 247252

fr/paris/lutece/plugins/wiki/search/WikiSearchEngine.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'strQuery' 2 81
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 113119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 121

fr/paris/lutece/plugins/wiki/service/ContentDeserializer.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 792
DataClass The class 'ContentDeserializer' is suspected to be a Data Class (WOC=7.692%, NOPA=12, NOAM=12, WMC=14) 3 792
FieldNamingConventions The field name 'topicVersion' doesn't match '_[a-z][a-zA-Z0-9]*' 1 10
FieldNamingConventions The field name 'parentPageName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 11
FieldNamingConventions The field name 'topicId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 12
FieldNamingConventions The field name 'topicTitle' doesn't match '_[a-z][a-zA-Z0-9]*' 1 13
FieldNamingConventions The field name 'topicContent' doesn't match '_[a-z][a-zA-Z0-9]*' 1 15
FieldNamingConventions The field name 'language' doesn't match '_[a-z][a-zA-Z0-9]*' 1 17
FieldNamingConventions The field name 'wikiHtmlContent' doesn't match '_[a-z][a-zA-Z0-9]*' 1 19
FieldNamingConventions The field name 'wikiPageUrl' doesn't match '_[a-z][a-zA-Z0-9]*' 1 21
FieldNamingConventions The field name 'editComment' doesn't match '_[a-z][a-zA-Z0-9]*' 1 22
FieldNamingConventions The field name 'viewRole' doesn't match '_[a-z][a-zA-Z0-9]*' 1 24
FieldNamingConventions The field name 'editRole' doesn't match '_[a-z][a-zA-Z0-9]*' 1 26
FieldNamingConventions The field name 'topicPageName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 28
CommentRequired Public method and constructor comments are required 3 8291

fr/paris/lutece/plugins/wiki/service/DiffService.java

Rule Violation Priority Line
AvoidDuplicateLiterals The String literal "diff" appears 5 times in this file; the first occurrence is on line 99 3 99
AvoidDuplicateLiterals The String literal "diffreport" appears 4 times in this file; the first occurrence is on line 117 3 117
AvoidDuplicateLiterals The String literal "css" appears 4 times in this file; the first occurrence is on line 154 3 154
AvoidDuplicateLiterals The String literal "link" appears 4 times in this file; the first occurrence is on line 162 3 162

fr/paris/lutece/plugins/wiki/service/ImageService.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'PLUGIN_NAME'. 3 50

fr/paris/lutece/plugins/wiki/service/PathService.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 49107
AvoidReassigningParameters Avoid reassigning parameters such as 'topic' 2 60

fr/paris/lutece/plugins/wiki/service/RoleService.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 104107

fr/paris/lutece/plugins/wiki/service/WikiDiff.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 46169
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 8184

fr/paris/lutece/plugins/wiki/service/WikiExtendableResourceService.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as '_plugin'. 3 60

fr/paris/lutece/plugins/wiki/service/WikiService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5356
ConfusingTernary Avoid if (x != y) ..; else ..; 3 101
ConfusingTernary Avoid if (x != y) ..; else ..; 3 108115
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 3 117
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 117

fr/paris/lutece/plugins/wiki/service/WikiUtils.java

Rule Violation Priority Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 56

fr/paris/lutece/plugins/wiki/service/parser/LuteceHtmlParser.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'LuteceHtmlParser' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 42168
CommentRequired Header comments are required 3 42168
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 43168
CommentRequired Public method and constructor comments are required 3 4795
AvoidReassigningParameters Avoid reassigning parameters such as 'htmlFromEditor' 2 47
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 59
ConfusingTernary Avoid if (x != y) ..; else ..; 3 7494
AvoidDuplicateLiterals The String literal "div" appears 4 times in this file; the first occurrence is on line 79 3 79
CommentRequired Public method and constructor comments are required 3 97166
CyclomaticComplexity The method 'createTableOfContent(Element, String, String)' has a cyclomatic complexity of 10. 3 97166
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 120
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 148
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 148

fr/paris/lutece/plugins/wiki/service/parser/LuteceWikiParser.java

Rule Violation Priority Line
ImmutableField Private field '_strPageName' could be made final; it is only initialized in the declaration or constructor. 3 67
ImmutableField Private field '_strPageUrl' could be made final; it is only initialized in the declaration or constructor. 3 68
ImmutableField Private field '_strLanguage' could be made final; it is only initialized in the declaration or constructor. 3 69
CyclomaticComplexity The method 'appendImage(String)' has a cyclomatic complexity of 12. 3 129196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 134
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 135
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 136
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 137
MissingBreakInSwitch A switch statement does not contain a break 3 149161
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 149161
AvoidDuplicateLiterals The String literal "\" " appears 6 times in this file; the first occurrence is on line 164 3 164
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 166
CyclomaticComplexity The method 'appendLink(String)' has a cyclomatic complexity of 12. 3 202259
InefficientEmptyStringCheck String.trim().length() == 0 / String.trim().isEmpty() is an inefficient way to validate a blank String. 3 247

fr/paris/lutece/plugins/wiki/service/parser/SpecialChar.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 344
ClassNamingConventions The utility class name 'SpecialChar' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 344
CommentRequired Header comments are required 3 344
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
CommentRequired Public method and constructor comments are required 3 2641
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 26

fr/paris/lutece/plugins/wiki/service/parser/WikiCreoleToMarkdown.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 45206
ClassNamingConventions The utility class name 'WikiCreoleToMarkdown' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 45206
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 46206
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
CommentRequired Public method and constructor comments are required 3 4870
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
AvoidReassigningParameters Avoid reassigning parameters such as 'str' 2 48
CommentRequired Public method and constructor comments are required 3 72204
CyclomaticComplexity The method 'wikiCreoleToMd(String, String, String, String)' has a cyclomatic complexity of 13. 3 72204
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 72
NcssCount The method 'wikiCreoleToMd(String, String, String, String)' has a NCSS line count of 88. 3 72204
ExcessiveMethodLength Avoid really long methods. 3 72204
AvoidDuplicateLiterals The String literal "$$span" appears 8 times in this file; the first occurrence is on line 85 3 85
AvoidDuplicateLiterals The String literal "class" appears 5 times in this file; the first occurrence is on line 97 3 97
ShortVariable Avoid variables with short names like p 3 111
ConfusingTernary Avoid if (x != y) ..; else ..; 3 117175
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 124
StringToString Avoid calling toString() on String objects; this is unnecessary. 3 132
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 133
ShortVariable Avoid variables with short names like p 3 134
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 137
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 142
ShortVariable Avoid variables with short names like p 3 143
StringToString Avoid calling toString() on String objects; this is unnecessary. 3 160
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 161
ShortVariable Avoid variables with short names like p 3 162
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 170
ShortVariable Avoid variables with short names like p 3 171
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'line' 3 192
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'line' 3 193
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 196
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 200

fr/paris/lutece/plugins/wiki/service/parser/WikiMacroService.java

Rule Violation Priority Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 109

fr/paris/lutece/plugins/wiki/utils/auth/WikiAnonymousAuthentication.java

Rule Violation Priority Line
UncommentedEmptyMethodBody Document empty method body 3 8384
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 108111
UncommentedEmptyMethodBody Document empty method body 3 309310

fr/paris/lutece/plugins/wiki/utils/auth/WikiAnonymousUser.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4584

fr/paris/lutece/plugins/wiki/web/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 3988

fr/paris/lutece/plugins/wiki/web/WikiApp.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341232
GodClass Possible God Class (WMC=52, ATFD=52, TCC=4.735%) 3 951232
ExcessiveClassLength Avoid really long classes. 3 951232
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 951232
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 179
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 193
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 215
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 248
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 432
UnusedLocalVariable Avoid unused local variables such as 'nVersion'. 3 432
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 450
ConfusingTernary Avoid if (x != y) ..; else ..; 3 463472
ShortVariable Avoid variables with short names like sb 3 510
AssignmentInOperand Avoid assignments in operands 3 513
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 535
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'page' 3 645
CyclomaticComplexity The method 'doUploadImage(HttpServletRequest)' has a cyclomatic complexity of 11. 3 658708
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 670
ConfusingTernary Avoid if (x != y) ..; else ..; 3 687695
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 808
ConfusingTernary Avoid if (x != y) ..; else ..; 3 892902
CyclomaticComplexity The method 'getPageExtendedPath(Topic, HttpServletRequest)' has a cyclomatic complexity of 11. 3 9971047
AvoidReassigningParameters Avoid reassigning parameters such as 'topic' 2 997
CollapsibleIfStatements These nested if statements could be combined 3 10251029
ConfusingTernary Avoid if (x != y) ..; else ..; 3 10971105
ConfusingTernary Avoid if (x != y) ..; else ..; 3 11611172

fr/paris/lutece/plugins/wiki/web/WikiDynamicInputs.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'WikiDynamicInputs' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 58145
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 59145
CommentRequired Public method and constructor comments are required 3 62144
ShortVariable Avoid variables with short names like sb 3 64
AssignmentInOperand Avoid assignments in operands 3 67
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 131
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 136

ys/wikiparser/Utils.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 32410
ClassNamingConventions The utility class name 'Utils' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 32410
TooManyMethods This class has too many methods, consider refactoring it. 3 33410
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 33410
RedundantFieldInitializer Avoid using redundant field initializer for 'entities' 3 34
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 34
FieldNamingConventions The static field name 'entities' doesn't match '_[a-z][a-zA-Z0-9]*' 1 34
FieldNamingConventions The constant name 'translitTable' doesn't match '[A-Z][A-Z_0-9]*' 1 35
CommentRequired Public method and constructor comments are required 3 3750
ShortVariable Avoid variables with short names like c 3 37
ShortVariable Avoid variables with short names like c 3 52
CommentRequired Public method and constructor comments are required 3 5255
AvoidReassigningParameters Avoid reassigning parameters such as 'text' 2 64
ShortVariable Avoid variables with short names like sb 3 77
ShortVariable Avoid variables with short names like c 3 83
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 85
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'p' 3 90
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 98
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 107
CommentRequired Public method and constructor comments are required 3 127172
ShortVariable Avoid variables with short names like s 3 127
ShortVariable Avoid variables with short names like sb 3 134
ShortVariable Avoid variables with short names like ch 3 139
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 141
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 146
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 151
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 156
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 161
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 174201
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 178
CommentRequired Public method and constructor comments are required 3 203268
CyclomaticComplexity The method 'unescapeHTML(String)' has a cyclomatic complexity of 11. 3 203268
ShortVariable Avoid variables with short names like sb 3 216
ShortVariable Avoid variables with short names like c 3 221
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 223
ShortVariable Avoid variables with short names like ce 3 225
ShortVariable Avoid variables with short names like i1 3 226
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 230
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 232
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 254
CommentRequired Public method and constructor comments are required 3 270280
ShortVariable Avoid variables with short names like s 3 270
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 276
CommentRequired Public method and constructor comments are required 3 282292
ShortVariable Avoid variables with short names like s 3 282
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 288
CommentRequired Public method and constructor comments are required 3 294311
ShortVariable Avoid variables with short names like to 3 294
ShortVariable Avoid variables with short names like i1 3 298
ShortVariable Avoid variables with short names like i2 3 299
AssignmentInOperand Avoid assignments in operands 3 301
ShortVariable Avoid variables with short names like s 3 313
CommentRequired Public method and constructor comments are required 3 313336
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 321
AssignmentInOperand Avoid assignments in operands 3 325
ShortVariable Avoid variables with short names like a 3 333
CyclomaticComplexity The method 'translit(String)' has a cyclomatic complexity of 17. 3 346389
ShortVariable Avoid variables with short names like s 3 346
ShortVariable Avoid variables with short names like sb 3 353
ShortVariable Avoid variables with short names like ch 3 359
ShortVariable Avoid variables with short names like c 3 365
CommentRequired Public method and constructor comments are required 3 391394
ShortVariable Avoid variables with short names like s 3 391
CommentRequired Public method and constructor comments are required 3 396399
ShortVariable Avoid variables with short names like s 3 396
ShortVariable Avoid variables with short names like s 3 401
CommentRequired Public method and constructor comments are required 3 401404
CommentRequired Public method and constructor comments are required 3 406409
ShortVariable Avoid variables with short names like s 3 406

ys/wikiparser/WikiParser.java

Rule Violation Priority Line
ExcessiveClassLength Avoid really long classes. 3 401266
CyclomaticComplexity The class 'WikiParser' has a total cyclomatic complexity of 284 (highest 112). 3 401266
TooManyFields Too many fields 3 401266
TooManyMethods This class has too many methods, consider refactoring it. 3 411266
AvoidDuplicateLiterals The String literal "}}}" appears 4 times in this file; the first occurrence is on line 44 3 44
FieldNamingConventions The field name 'wikiLength' doesn't match '_[a-z][a-zA-Z0-9]*' 1 63
FieldNamingConventions The field name 'wikiChars' doesn't match '_[a-z][a-zA-Z0-9]*' 1 64
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 65
ShortVariable Avoid variables with short names like sb 3 65
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 150 characters appended. 3 65
FieldNamingConventions The field name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 1 65
FieldNamingConventions The field name 'toc' doesn't match '_[a-z][a-zA-Z0-9]*' 1 66
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 46 characters appended. 3 66
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 66
RedundantFieldInitializer Avoid using redundant field initializer for 'tocLevel' 3 67
FieldNamingConventions The field name 'tocLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 1 67
LooseCoupling Avoid using implementation types like 'HashSet'; use the interface instead 3 68
FieldNamingConventions The field name 'tocAnchorIds' doesn't match '_[a-z][a-zA-Z0-9]*' 1 68
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 68
ImmutableField Private field 'tocAnchorIds' could be made final; it is only initialized in the declaration or constructor. 3 68
FieldNamingConventions The field name 'wikiText' doesn't match '_[a-z][a-zA-Z0-9]*' 1 69
FieldNamingConventions The field name 'pos' doesn't match '_[a-z][a-zA-Z0-9]*' 1 70
RedundantFieldInitializer Avoid using redundant field initializer for 'pos' 3 70
FieldNamingConventions The field name 'listLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 1 71
FieldNamingConventions The field name 'listLevels' doesn't match '_[a-z][a-zA-Z0-9]*' 1 72
FieldNamingConventions The field name 'blockquoteBR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 73
RedundantFieldInitializer Avoid using redundant field initializer for 'blockquoteBR' 3 73
FieldNamingConventions The field name 'inTable' doesn't match '_[a-z][a-zA-Z0-9]*' 1 74
RedundantFieldInitializer Avoid using redundant field initializer for 'inTable' 3 74
RedundantFieldInitializer Avoid using redundant field initializer for 'mediawikiTableLevel' 3 75
FieldNamingConventions The field name 'mediawikiTableLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 1 75
FieldNamingConventions The field name 'HEADING_LEVEL_SHIFT' doesn't match '_[a-z][a-zA-Z0-9]*' 1 76
FieldNamingConventions The field name 'HEADING_ID_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 1 77
RedundantFieldInitializer Avoid using redundant field initializer for 'HEADING_ID_PREFIX' 3 77
CommentRequired Protected method constructor comments are required 3 8286
CommentRequired Protected method constructor comments are required 3 8891
ConstructorCallsOverridableMethod Overridable method 'parse' called during object construction 1 90
CommentRequired Protected method constructor comments are required 3 9396
CommentRequired Protected method constructor comments are required 3 99102
CommentRequired Protected method constructor comments are required 3 105108
CommentRequired Public method and constructor comments are required 3 110113
AvoidReassigningParameters Avoid reassigning parameters such as 'wikiText' 2 115
CommentRequired Protected method constructor comments are required 3 115133
ControlStatementBraces This statement should have braces 3 124125
EmptyWhileStmt Avoid empty while statements 3 125
ControlStatementBraces This statement should have braces 3 129130
AssignmentInOperand Avoid assignments in operands 3 129
MissingOverride The method 'toString()' is missing an @Override annotation. 3 135138
CommentRequired Public method and constructor comments are required 3 135138
CyclomaticComplexity The method 'parseBlock()' has a cyclomatic complexity of 81. 3 155457
NPathComplexity The method 'parseBlock()' has an NPath complexity of 6386688 3 155457
ExcessiveMethodLength Avoid really long methods. 3 155457
NcssCount The method 'parseBlock()' has a NCSS line count of 146. 3 155457
ControlStatementBraces This statement should have braces 3 157158
ShortVariable Avoid variables with short names like c 3 165
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 167
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 175
ShortVariable Avoid variables with short names like pp 3 180
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 187
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 193197
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 193
ControlStatementBraces This statement should have braces 3 199200
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 207210
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 222
ShortVariable Avoid variables with short names like lc 3 242
ControlStatementBraces This statement should have braces 3 245246
ShortVariable Avoid variables with short names like cc 3 269
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 290
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 306
ShortVariable Avoid variables with short names like hc 3 309
ControlStatementBraces This statement should have braces 3 312313
ShortVariable Avoid variables with short names like p 3 320
ControlStatementBraces This statement should have braces 3 322323
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 341
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 353
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 358
ShortVariable Avoid variables with short names like pp 3 377
ControlStatementBraces This statement should have braces 3 379380
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 384
ShortVariable Avoid variables with short names like p 3 395
ControlStatementBraces This statement should have braces 3 397398
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 409
CollapsibleIfStatements These nested if statements could be combined 3 412449
ShortVariable Avoid variables with short names like nc 3 414
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 436
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 441
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 452
ControlStatementBraces This statement should have braces 3 480481
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
NPathComplexity The method 'parseTableRow(int)' has an NPath complexity of 5762 3 531606
CyclomaticComplexity The method 'parseTableRow(int)' has a cyclomatic complexity of 18. 3 531606
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 531
ControlStatementBraces This statement should have braces 3 546547
ShortVariable Avoid variables with short names like th 3 552
ControlStatementBraces This statement should have braces 3 555556
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 567
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 587
AvoidReassigningParameters Avoid reassigning parameters such as 'start' 2 613
ControlStatementBraces This statement should have braces 3 615616
NPathComplexity The method 'checkURI(int, int, int)' has an NPath complexity of 290 3 647691
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 647691
ShortVariable Avoid variables with short names like p 3 647
CyclomaticComplexity The method 'checkURI(int, int, int)' has a cyclomatic complexity of 15. 3 647691
ShortVariable Avoid variables with short names like pb 3 652
ControlStatementBraces This statement should have braces 3 654655
ShortVariable Avoid variables with short names like pe 3 657
ControlStatementBraces This statement should have braces 3 659660
ControlStatementBraces This statement should have braces 3 666667
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'e' 3 701
NPathComplexity The method 'parseItemThrow(int, String, ContextType)' has an NPath complexity of 18711842 3 7051103
ExcessiveMethodLength Avoid really long methods. 3 7051103
CyclomaticComplexity The method 'parseItemThrow(int, String, ContextType)' has a cyclomatic complexity of 112. 3 7051103
NcssCount The method 'parseItemThrow(int, String, ContextType)' has a NCSS line count of 185. 3 7051103
ShortVariable Avoid variables with short names like tb 3 707
ShortVariable Avoid variables with short names like p 3 710
CollapsibleIfStatements These nested if statements could be combined 3 724729
ShortVariable Avoid variables with short names like c 3 732
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 736
ControlStatementBraces This statement should have braces 3 750751
ShortVariable Avoid variables with short names like pp 3 764
ControlStatementBraces This statement should have braces 3 766767
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 799
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 804
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 809
CollapsibleIfStatements These nested if statements could be combined 3 812823
ShortVariable Avoid variables with short names like pp 3 814
ControlStatementBraces This statement should have braces 3 816817
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 832
CollapsibleIfStatements These nested if statements could be combined 3 834838
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 843
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 859
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 864
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 910
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 929
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 942
CollapsibleIfStatements These nested if statements could be combined 3 946960
AssignmentInOperand Avoid assignments in operands 3 964
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 971
ShortVariable Avoid variables with short names like pb 3 978
ShortVariable Avoid variables with short names like pe 3 979
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1013
CollapsibleIfStatements These nested if statements could be combined 3 10201064
ShortVariable Avoid variables with short names like nc 3 1022
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1048
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1053
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1079
CollapsibleIfStatements These nested if statements could be combined 3 10821091
CommentRequired Protected method constructor comments are required 3 11051117
CommentRequired Protected method constructor comments are required 3 11191144
EmptyCatchBlock Avoid empty catch blocks 3 11281130
CommentRequired Protected method constructor comments are required 3 11461170
EmptyCatchBlock Avoid empty catch blocks 3 11551157
CommentRequired Protected method constructor comments are required 3 11721175
CommentRequired Protected method constructor comments are required 3 11771192
ShortVariable Avoid variables with short names like i 3 1179
ShortVariable Avoid variables with short names like id 3 1180
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1180
CommentRequired Protected method constructor comments are required 3 11941216
CommentRequired Protected method constructor comments are required 3 12181233
AssignmentInOperand Avoid assignments in operands 3 1229
CommentRequired Protected method constructor comments are required 3 12351238
CommentRequired Header comments are required 3 12401250
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the position field if you want a default access modifier 3 1243
DefaultPackage Use explicit scoping instead of the default package private level 3 1243
FieldNamingConventions The field name 'position' doesn't match '_[a-z][a-zA-Z0-9]*' 1 1243
CommentRequired Public method and constructor comments are required 3 12451249
CommentRequired Header comments are required 3 12521260
CommentRequired Public method and constructor comments are required 3 12561259
CommentRequired Enum comments are required 3 12621265
UnnecessaryModifier Unnecessary modifier 'static' on enum 'ContextType': nested enums are implicitly static 3 12621265