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/blog/business/BlogSerializable.java

Rule Violation Line
FieldNamingConventions The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' 8
FieldNamingConventions The field name 'contentLabel' doesn't match '_[a-z][a-zA-Z0-9]*' 9

fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationHome.java

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

fr/paris/lutece/plugins/blog/web/BlogJspBean.java

Rule Violation Line
FieldNamingConventions The final field name '_blogServiceSession' doesn't match '[a-z][a-zA-Z0-9]*' 278

Priority 2

fr/paris/lutece/plugins/blog/business/BlogDAO.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 705
GuardLogStatement Logger calls should be surrounded by log level guards. 717
GuardLogStatement Logger calls should be surrounded by log level guards. 728

fr/paris/lutece/plugins/blog/service/docsearch/BlogSearchService.java

Rule Violation Line
AvoidUsingVolatile Use of modifier volatile is not recommended. 92

Priority 3

fr/paris/lutece/plugins/blog/business/Blog.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34641
TooManyFields Too many fields 54641
CommentRequired Public method and constructor comments are required 289292
CommentRequired Public method and constructor comments are required 294297

fr/paris/lutece/plugins/blog/business/BlogDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 51851
ExcessiveMethodLength Avoid really long methods. 606734
NcssCount The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. 606734
NPathComplexity The method 'getDaoFromFilter(String, BlogFilter)' has an NPath complexity of 266112 606734
CyclomaticComplexity The method 'getDaoFromFilter(String, BlogFilter)' has a cyclomatic complexity of 28. 606734
ShortVariable Avoid variables with short names like i 615
ConfusingTernary Avoid if (x != y) ..; else ..; 637
ConfusingTernary Avoid if (x != y) ..; else ..; 655
ConfusingTernary Avoid if (x != y) ..; else ..; 660
ConfusingTernary Avoid if (x != y) ..; else ..; 665
ConfusingTernary Avoid if (x != y) ..; else ..; 671
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 671
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 672
ConfusingTernary Avoid if (x != y) ..; else ..; 678
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 678
ConfusingTernary Avoid if (x != y) ..; else ..; 684
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 684
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 692
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 698
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 702

fr/paris/lutece/plugins/blog/business/BlogFilter.java

Rule Violation Line
MethodReturnsInternalArray Returning '_arrayTagsId' may expose an internal array. 59
ArrayIsStoredDirectly The user-supplied array 'arrayTagsId' is stored directly. 66
MethodReturnsInternalArray Returning '_arrayId' may expose an internal array. 96
ArrayIsStoredDirectly The user-supplied array 'arrayId' is stored directly. 103

fr/paris/lutece/plugins/blog/business/BlogHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 47316

fr/paris/lutece/plugins/blog/business/BlogPageTemplateDAO.java

Rule Violation Line
DefaultPackage Use explicit scoping instead of the default package private level 6375
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier 6375
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 8497

fr/paris/lutece/plugins/blog/business/BlogSearchFilter.java

Rule Violation Line
MethodReturnsInternalArray Returning '_strTag' may expose an internal array. 101
ArrayIsStoredDirectly The user-supplied array 'strTag' is stored directly. 110

fr/paris/lutece/plugins/blog/business/BlogSerializable.java

Rule Violation Line
DataClass The class 'BlogSerializable' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 656
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 656
CommentRequired Header comments are required 656
DefaultPackage Use explicit scoping instead of the default package private level 8
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the id field if you want a default access modifier 8
ShortVariable Avoid variables with short names like id 8
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier 9
DefaultPackage Use explicit scoping instead of the default package private level 9
UncommentedEmptyConstructor Document empty constructor 1113
CommentRequired Public method and constructor comments are required 1113
ShortVariable Avoid variables with short names like id 15
CommentRequired Public method and constructor comments are required 1519
ShortVariable Avoid variables with short names like id 34

fr/paris/lutece/plugins/blog/business/ContentType.java

Rule Violation Line
CommentRequired Header comments are required 3684

fr/paris/lutece/plugins/blog/business/DocContent.java

Rule Violation Line
ArrayIsStoredDirectly The user-supplied array 'bytes' is stored directly. 106
MethodReturnsInternalArray Returning '_bytes' may expose an internal array. 118

fr/paris/lutece/plugins/blog/business/DocContentDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 46293

fr/paris/lutece/plugins/blog/business/IBlogDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 45234
CommentRequired Public method and constructor comments are required 232

fr/paris/lutece/plugins/blog/business/IDocContentDAO.java

Rule Violation Line
CommentRequired Header comments are required 40145

fr/paris/lutece/plugins/blog/business/ITagDAO.java

Rule Violation Line
CommentRequired Header comments are required 41172
TooManyMethods This class has too many methods, consider refactoring it. 42172

fr/paris/lutece/plugins/blog/business/IndexerActionDAO.java

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

fr/paris/lutece/plugins/blog/business/IndexerActionHome.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 65113
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 121124

fr/paris/lutece/plugins/blog/business/Tag.java

Rule Violation Line
CommentRequired Header comments are required 40145
CommentRequired Public method and constructor comments are required 5659
UncommentedEmptyConstructor Document empty constructor 5659
CommentRequired Public method and constructor comments are required 6166

fr/paris/lutece/plugins/blog/business/TagDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 47326

fr/paris/lutece/plugins/blog/business/insertservice/BlogLinkPOJO.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4245
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
CommentRequired Public method and constructor comments are required 6770
CommentRequired Public method and constructor comments are required 7275
CommentRequired Public method and constructor comments are required 7780

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortlet.java

Rule Violation Line
ImmutableField Private field '_removedBlogsId' could be made final; it is only initialized in the declaration or constructor. 76
CallSuperInConstructor It is a good practice to call super() in a constructor 8184
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 95

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortletDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52395
ShortVariable Avoid variables with short names like p 82
ShortVariable Avoid variables with short names like p 103
ShortVariable Avoid variables with short names like p 131
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 212
ShortVariable Avoid variables with short names like p 262
CyclomaticComplexity The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. 320374
ConfusingTernary Avoid if (x != y) ..; else ..; 325

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortletHome.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 56
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 56
CallSuperInConstructor It is a good practice to call super() in a constructor 6167
NonThreadSafeSingleton Singleton is not thread safe 7679

fr/paris/lutece/plugins/blog/business/portlet/BlogPortlet.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 6669
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 75

fr/paris/lutece/plugins/blog/business/portlet/BlogPortletDAO.java

Rule Violation Line
ShortVariable Avoid variables with short names like p 71
ShortVariable Avoid variables with short names like p 109
ShortVariable Avoid variables with short names like p 160
CyclomaticComplexity The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. 195245
ConfusingTernary Avoid if (x != y) ..; else ..; 200

fr/paris/lutece/plugins/blog/business/portlet/BlogPortletHome.java

Rule Violation Line
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 53
CallSuperInConstructor It is a good practice to call super() in a constructor 5864
NonThreadSafeSingleton Singleton is not thread safe 8588

fr/paris/lutece/plugins/blog/business/portlet/BlogPublication.java

Rule Violation Line
CommentRequired Header comments are required 41171

fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java

Rule Violation Line
CommentRequired Header comments are required 45434
TooManyMethods This class has too many methods, consider refactoring it. 46434

fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationHome.java

Rule Violation Line
CommentRequired Header comments are required 45240

fr/paris/lutece/plugins/blog/business/portlet/IBlogPortletDAO.java

Rule Violation Line
MissingOverride The method 'load(int)' is missing an @Override annotation. 74

fr/paris/lutece/plugins/blog/business/portlet/IBlogPublicationDAO.java

Rule Violation Line
CommentRequired Header comments are required 42204
TooManyMethods This class has too many methods, consider refactoring it. 43204

fr/paris/lutece/plugins/blog/business/portlet/PortletFilter.java

Rule Violation Line
ArrayIsStoredDirectly The user-supplied array 'aPageTitle' is stored directly. 68
MethodReturnsInternalArray Returning '_aPageName' may expose an internal array. 80
ArrayIsStoredDirectly The user-supplied array 'aPortletTitle' is stored directly. 89
MethodReturnsInternalArray Returning '_aPortletName' may expose an internal array. 101
CyclomaticComplexity The method 'getSQLFilter()' has a cyclomatic complexity of 13. 172221

fr/paris/lutece/plugins/blog/business/rss/BlogResourceRss.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34315
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 297

fr/paris/lutece/plugins/blog/business/rss/BlogResourceRssConfigDAO.java

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

fr/paris/lutece/plugins/blog/service/BlogIdService.java

Rule Violation Line
CommentRequired Header comments are required 47116
ShortVariable Avoid variables with short names like rt 61
ShortVariable Avoid variables with short names like p 67

fr/paris/lutece/plugins/blog/service/BlogService.java

Rule Violation Line
GodClass Possible God Class (WMC=57, ATFD=99, TCC=0.000%) 60532
TooManyMethods This class has too many methods, consider refactoring it. 61532
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 169
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 224
ConfusingTernary Avoid if (x != y) ..; else ..; 241252
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 284
CollapsibleIfStatements These nested if statements could be combined 303307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 345
CommentRequired Public method and constructor comments are required 506513
CommentRequired Public method and constructor comments are required 515522
CommentRequired Public method and constructor comments are required 524531

fr/paris/lutece/plugins/blog/service/BlogSessionListner.java

Rule Violation Line
ShortVariable Avoid variables with short names like se 57
ShortVariable Avoid variables with short names like se 66
CommentRequired Public method and constructor comments are required 7377
CommentRequired Public method and constructor comments are required 7984

fr/paris/lutece/plugins/blog/service/PublishingService.java

Rule Violation Line
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 309

fr/paris/lutece/plugins/blog/service/TagIdService.java

Rule Violation Line
CommentRequired Header comments are required 47110
ShortVariable Avoid variables with short names like rt 60
ShortVariable Avoid variables with short names like p 66

fr/paris/lutece/plugins/blog/service/TagService.java

Rule Violation Line
CommentRequired Header comments are required 4168

fr/paris/lutece/plugins/blog/service/UnlockedBlogDaemon.java

Rule Violation Line
CommentRequired Header comments are required 4057

fr/paris/lutece/plugins/blog/service/docsearch/BlogSearchItem.java

Rule Violation Line
DataClass The class 'BlogSearchItem' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) 4386
CommentRequired Public method and constructor comments are required 4548
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 58
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 75
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 80
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 84

fr/paris/lutece/plugins/blog/service/docsearch/BlogSearchService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34483
ImmutableField Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. 102
ImmutableField Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. 103
NonThreadSafeSingleton Singleton is not thread safe 144147
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. 196
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 202
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 243
ShortVariable Avoid variables with short names like si 307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 312
NPathComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 216 321407
CyclomaticComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 11. 321407
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 405
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 405
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 406

fr/paris/lutece/plugins/blog/service/docsearch/DefaultBlogIndexer.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34407
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 123194
ConfusingTernary Avoid if (x != y) ..; else ..; 128191
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 181
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 212
ShortVariable Avoid variables with short names like ft 217
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 275
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 276
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 277
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 278
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 279
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 280

fr/paris/lutece/plugins/blog/service/search/BlogSearchIndexer.java

Rule Violation Line
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 101

fr/paris/lutece/plugins/blog/utils/BlogLock.java

Rule Violation Line
CommentRequired Header comments are required 3875
CommentRequired Public method and constructor comments are required 4449
CommentRequired Public method and constructor comments are required 5155
CommentRequired Public method and constructor comments are required 5761
CommentRequired Public method and constructor comments are required 6367
CommentRequired Public method and constructor comments are required 6973

fr/paris/lutece/plugins/blog/utils/BlogUtils.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 110
AssignmentInOperand Avoid assignments in operands 110
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 171172
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 220
CommentRequired Public method and constructor comments are required 244247

fr/paris/lutece/plugins/blog/web/BlogDashboardComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 108
ShortVariable Avoid variables with short names like t 119

fr/paris/lutece/plugins/blog/web/BlogFileServlet.java

Rule Violation Line
ShortVariable Avoid variables with short names like os 104

fr/paris/lutece/plugins/blog/web/BlogJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341594
ExcessiveClassLength Avoid really long classes. 1201594
TooManyMethods This class has too many methods, consider refactoring it. 1211594
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 262
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 264
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsUnpulished' 266
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 272
CyclomaticComplexity The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. 288444
ExcessiveMethodLength Avoid really long methods. 288444
NPathComplexity The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 13590 288444
NcssCount The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 94. 288444
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 290
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 297
ConfusingTernary Avoid if (x != y) ..; else ..; 304324
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 318
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 319
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 321
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 322
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 424
AddEmptyString Do not add empty strings 432
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 453
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 456
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 483
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 484
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 519
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 624
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 663
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 704
CyclomaticComplexity The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. 747808
ShortVariable Avoid variables with short names like tg 749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 750
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 751
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 752
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 754
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 755
PositionLiteralsFirstInComparisons Position literals first in String comparisons 782
PositionLiteralsFirstInComparisons Position literals first in String comparisons 790
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 823
CommentRequired Public method and constructor comments are required 891915
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 936
ConfusingTernary Avoid if (x != y) ..; else ..; 945956
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1027
ConfusingTernary Avoid if (x != y) ..; else ..; 10841091
ConfusingTernary Avoid if (x != y) ..; else ..; 11241131
ShortVariable Avoid variables with short names like tf 1156
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1177
ShortVariable Avoid variables with short names like is 1249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1297
CyclomaticComplexity The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. 13391400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1342
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1343
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1344
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1346
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1347
PositionLiteralsFirstInComparisons Position literals first in String comparisons 1374
PositionLiteralsFirstInComparisons Position literals first in String comparisons 1382
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1411
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1412
LinguisticNaming Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically 14541480

fr/paris/lutece/plugins/blog/web/BlogPublicationJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34480
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 146
CyclomaticComplexity The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. 147215
NPathComplexity The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 147215
ConfusingTernary Avoid if (x != y) ..; else ..; 154
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 236
ConfusingTernary Avoid if (x != y) ..; else ..; 285
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 292
LinguisticNaming Linguistics Antipattern - The setter 'setFillFilter' should not return any type except void linguistically 323362
ConfusingTernary Avoid if (x != y) ..; else ..; 328359
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 423

fr/paris/lutece/plugins/blog/web/ManageBlogJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 52141
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 79
AddEmptyString Do not add empty strings 135

fr/paris/lutece/plugins/blog/web/TagJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 124
ConfusingTernary Avoid if (x != y) ..; else ..; 160
ConfusingTernary Avoid if (x != y) ..; else ..; 181
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 229
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 283
ConfusingTernary Avoid if (x != y) ..; else ..; 314

fr/paris/lutece/plugins/blog/web/insertservice/AbstractBlogInsertServiceJspBean.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 114

fr/paris/lutece/plugins/blog/web/insertservice/BlogPortletInsertServiceJspBean.java

Rule Violation Line
CommentRequired Header comments are required 50105

fr/paris/lutece/plugins/blog/web/insertservice/BlogResourceInsertServiceJspBean.java

Rule Violation Line
CommentRequired Header comments are required 49169

fr/paris/lutece/plugins/blog/web/insertservice/BlogUrlInsertServiceJspBean.java

Rule Violation Line
CommentRequired Header comments are required 4798

fr/paris/lutece/plugins/blog/web/portlet/BlogListPortletJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34587
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 142
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsUnpulished' 144
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 147
AddEmptyString Do not add empty strings 203
CyclomaticComplexity The method 'filterBlogIds(HttpServletRequest)' has a cyclomatic complexity of 13. 226270
ConfusingTernary Avoid if (x != y) ..; else ..; 280302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 296
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 297
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 299
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 300
CommentRequired Public method and constructor comments are required 305336
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 307
ConfusingTernary Avoid if (x != y) ..; else ..; 350
ConfusingTernary Avoid if (x != y) ..; else ..; 370371
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 395
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 408
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 437
CyclomaticComplexity The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. 455516
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 470
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 473
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 508
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 538

fr/paris/lutece/plugins/blog/web/portlet/BlogPortletJspBean.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 145
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 149
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 168
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 189
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 211
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 214

Priority 4

fr/paris/lutece/plugins/blog/business/Blog.java

Rule Violation Line
ShortClassName Avoid short class names like Blog 54641
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 417420
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 437440

fr/paris/lutece/plugins/blog/business/BlogFilter.java

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 66
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 103
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 113116
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 185188

fr/paris/lutece/plugins/blog/business/BlogSearchFilter.java

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 110
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 162165

fr/paris/lutece/plugins/blog/business/Tag.java

Rule Violation Line
ShortClassName Avoid short class names like Tag 40145

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortlet.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' 89

fr/paris/lutece/plugins/blog/business/portlet/BlogPortlet.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' 87

fr/paris/lutece/plugins/blog/business/portlet/PortletFilter.java

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 68
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 89

fr/paris/lutece/plugins/blog/service/docsearch/DefaultBlogIndexer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.blog.business.IndexerAction' due to existing import 'fr.paris.lutece.plugins.blog.business.IndexerAction' 132
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 205
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 208
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 208

fr/paris/lutece/plugins/blog/web/BlogJspBean.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.date.DateUtil' 109
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1586
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1589
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1589

fr/paris/lutece/plugins/blog/web/BlogPublicationJspBean.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 289
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 290
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 298
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 303

fr/paris/lutece/plugins/blog/web/portlet/BlogPortletJspBean.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 247
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 247

Files

fr/paris/lutece/plugins/blog/business/Blog.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34641
TooManyFields Too many fields 3 54641
ShortClassName Avoid short class names like Blog 4 54641
CommentRequired Public method and constructor comments are required 3 289292
CommentRequired Public method and constructor comments are required 3 294297
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 417420
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 437440

fr/paris/lutece/plugins/blog/business/BlogDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 51851
ExcessiveMethodLength Avoid really long methods. 3 606734
NcssCount The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. 3 606734
NPathComplexity The method 'getDaoFromFilter(String, BlogFilter)' has an NPath complexity of 266112 3 606734
CyclomaticComplexity The method 'getDaoFromFilter(String, BlogFilter)' has a cyclomatic complexity of 28. 3 606734
ShortVariable Avoid variables with short names like i 3 615
ConfusingTernary Avoid if (x != y) ..; else ..; 3 637
ConfusingTernary Avoid if (x != y) ..; else ..; 3 655
ConfusingTernary Avoid if (x != y) ..; else ..; 3 660
ConfusingTernary Avoid if (x != y) ..; else ..; 3 665
ConfusingTernary Avoid if (x != y) ..; else ..; 3 671
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 671
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 672
ConfusingTernary Avoid if (x != y) ..; else ..; 3 678
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 678
ConfusingTernary Avoid if (x != y) ..; else ..; 3 684
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 684
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 692
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 698
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 702
GuardLogStatement Logger calls should be surrounded by log level guards. 2 705
GuardLogStatement Logger calls should be surrounded by log level guards. 2 717
GuardLogStatement Logger calls should be surrounded by log level guards. 2 728

fr/paris/lutece/plugins/blog/business/BlogFilter.java

Rule Violation Priority Line
MethodReturnsInternalArray Returning '_arrayTagsId' may expose an internal array. 3 59
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 66
ArrayIsStoredDirectly The user-supplied array 'arrayTagsId' is stored directly. 3 66
MethodReturnsInternalArray Returning '_arrayId' may expose an internal array. 3 96
ArrayIsStoredDirectly The user-supplied array 'arrayId' is stored directly. 3 103
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 103
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 113116
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 185188

fr/paris/lutece/plugins/blog/business/BlogHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 47316

fr/paris/lutece/plugins/blog/business/BlogPageTemplateDAO.java

Rule Violation Priority Line
DefaultPackage Use explicit scoping instead of the default package private level 3 6375
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier 3 6375
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 8497

fr/paris/lutece/plugins/blog/business/BlogSearchFilter.java

Rule Violation Priority Line
MethodReturnsInternalArray Returning '_strTag' may expose an internal array. 3 101
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 110
ArrayIsStoredDirectly The user-supplied array 'strTag' is stored directly. 3 110
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 162165

fr/paris/lutece/plugins/blog/business/BlogSerializable.java

Rule Violation Priority Line
DataClass The class 'BlogSerializable' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 3 656
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 656
CommentRequired Header comments are required 3 656
DefaultPackage Use explicit scoping instead of the default package private level 3 8
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the id field if you want a default access modifier 3 8
ShortVariable Avoid variables with short names like id 3 8
FieldNamingConventions The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' 1 8
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier 3 9
FieldNamingConventions The field name 'contentLabel' doesn't match '_[a-z][a-zA-Z0-9]*' 1 9
DefaultPackage Use explicit scoping instead of the default package private level 3 9
UncommentedEmptyConstructor Document empty constructor 3 1113
CommentRequired Public method and constructor comments are required 3 1113
ShortVariable Avoid variables with short names like id 3 15
CommentRequired Public method and constructor comments are required 3 1519
ShortVariable Avoid variables with short names like id 3 34

fr/paris/lutece/plugins/blog/business/ContentType.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3684

fr/paris/lutece/plugins/blog/business/DocContent.java

Rule Violation Priority Line
ArrayIsStoredDirectly The user-supplied array 'bytes' is stored directly. 3 106
MethodReturnsInternalArray Returning '_bytes' may expose an internal array. 3 118

fr/paris/lutece/plugins/blog/business/DocContentDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 46293

fr/paris/lutece/plugins/blog/business/IBlogDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 45234
CommentRequired Public method and constructor comments are required 3 232

fr/paris/lutece/plugins/blog/business/IDocContentDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40145

fr/paris/lutece/plugins/blog/business/ITagDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41172
TooManyMethods This class has too many methods, consider refactoring it. 3 42172

fr/paris/lutece/plugins/blog/business/IndexerActionDAO.java

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

fr/paris/lutece/plugins/blog/business/IndexerActionHome.java

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

fr/paris/lutece/plugins/blog/business/Tag.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40145
ShortClassName Avoid short class names like Tag 4 40145
CommentRequired Public method and constructor comments are required 3 5659
UncommentedEmptyConstructor Document empty constructor 3 5659
CommentRequired Public method and constructor comments are required 3 6166

fr/paris/lutece/plugins/blog/business/TagDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 47326

fr/paris/lutece/plugins/blog/business/insertservice/BlogLinkPOJO.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4245
CommentRequired Public method and constructor comments are required 3 4750
CommentRequired Public method and constructor comments are required 3 5255
CommentRequired Public method and constructor comments are required 3 5760
CommentRequired Public method and constructor comments are required 3 6265
CommentRequired Public method and constructor comments are required 3 6770
CommentRequired Public method and constructor comments are required 3 7275
CommentRequired Public method and constructor comments are required 3 7780

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortlet.java

Rule Violation Priority Line
ImmutableField Private field '_removedBlogsId' could be made final; it is only initialized in the declaration or constructor. 3 76
CallSuperInConstructor It is a good practice to call super() in a constructor 3 8184
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' 4 89
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 95

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortletDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52395
ShortVariable Avoid variables with short names like p 3 82
ShortVariable Avoid variables with short names like p 3 103
ShortVariable Avoid variables with short names like p 3 131
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 212
ShortVariable Avoid variables with short names like p 3 262
CyclomaticComplexity The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. 3 320374
ConfusingTernary Avoid if (x != y) ..; else ..; 3 325

fr/paris/lutece/plugins/blog/business/portlet/BlogListPortletHome.java

Rule Violation Priority Line
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 3 56
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 56
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6167
NonThreadSafeSingleton Singleton is not thread safe 3 7679

fr/paris/lutece/plugins/blog/business/portlet/BlogPortlet.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6669
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 75
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' 4 87

fr/paris/lutece/plugins/blog/business/portlet/BlogPortletDAO.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like p 3 71
ShortVariable Avoid variables with short names like p 3 109
ShortVariable Avoid variables with short names like p 3 160
CyclomaticComplexity The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. 3 195245
ConfusingTernary Avoid if (x != y) ..; else ..; 3 200

fr/paris/lutece/plugins/blog/business/portlet/BlogPortletHome.java

Rule Violation Priority Line
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 53
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5864
NonThreadSafeSingleton Singleton is not thread safe 3 8588

fr/paris/lutece/plugins/blog/business/portlet/BlogPublication.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41171

fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 45434
TooManyMethods This class has too many methods, consider refactoring it. 3 46434

fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationHome.java

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

fr/paris/lutece/plugins/blog/business/portlet/IBlogPortletDAO.java

Rule Violation Priority Line
MissingOverride The method 'load(int)' is missing an @Override annotation. 3 74

fr/paris/lutece/plugins/blog/business/portlet/IBlogPublicationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42204
TooManyMethods This class has too many methods, consider refactoring it. 3 43204

fr/paris/lutece/plugins/blog/business/portlet/PortletFilter.java

Rule Violation Priority Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 68
ArrayIsStoredDirectly The user-supplied array 'aPageTitle' is stored directly. 3 68
MethodReturnsInternalArray Returning '_aPageName' may expose an internal array. 3 80
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 89
ArrayIsStoredDirectly The user-supplied array 'aPortletTitle' is stored directly. 3 89
MethodReturnsInternalArray Returning '_aPortletName' may expose an internal array. 3 101
CyclomaticComplexity The method 'getSQLFilter()' has a cyclomatic complexity of 13. 3 172221

fr/paris/lutece/plugins/blog/business/rss/BlogResourceRss.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34315
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 297

fr/paris/lutece/plugins/blog/business/rss/BlogResourceRssConfigDAO.java

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

fr/paris/lutece/plugins/blog/service/BlogIdService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 47116
ShortVariable Avoid variables with short names like rt 3 61
ShortVariable Avoid variables with short names like p 3 67

fr/paris/lutece/plugins/blog/service/BlogService.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=57, ATFD=99, TCC=0.000%) 3 60532
TooManyMethods This class has too many methods, consider refactoring it. 3 61532
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 169
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 224
ConfusingTernary Avoid if (x != y) ..; else ..; 3 241252
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 284
CollapsibleIfStatements These nested if statements could be combined 3 303307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 345
CommentRequired Public method and constructor comments are required 3 506513
CommentRequired Public method and constructor comments are required 3 515522
CommentRequired Public method and constructor comments are required 3 524531

fr/paris/lutece/plugins/blog/service/BlogSessionListner.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like se 3 57
ShortVariable Avoid variables with short names like se 3 66
CommentRequired Public method and constructor comments are required 3 7377
CommentRequired Public method and constructor comments are required 3 7984

fr/paris/lutece/plugins/blog/service/PublishingService.java

Rule Violation Priority Line
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 309

fr/paris/lutece/plugins/blog/service/TagIdService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 47110
ShortVariable Avoid variables with short names like rt 3 60
ShortVariable Avoid variables with short names like p 3 66

fr/paris/lutece/plugins/blog/service/TagService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4168

fr/paris/lutece/plugins/blog/service/UnlockedBlogDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4057

fr/paris/lutece/plugins/blog/service/docsearch/BlogSearchItem.java

Rule Violation Priority Line
DataClass The class 'BlogSearchItem' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) 3 4386
CommentRequired Public method and constructor comments are required 3 4548
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 53
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 58
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 75
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 80
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 84

fr/paris/lutece/plugins/blog/service/docsearch/BlogSearchService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34483
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 92
ImmutableField Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. 3 102
ImmutableField Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. 3 103
NonThreadSafeSingleton Singleton is not thread safe 3 144147
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. 3 196
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 202
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 243
ShortVariable Avoid variables with short names like si 3 307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 312
NPathComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 216 3 321407
CyclomaticComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 11. 3 321407
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 405
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 405
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 406

fr/paris/lutece/plugins/blog/service/docsearch/DefaultBlogIndexer.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34407
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 123194
ConfusingTernary Avoid if (x != y) ..; else ..; 3 128191
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.blog.business.IndexerAction' due to existing import 'fr.paris.lutece.plugins.blog.business.IndexerAction' 4 132
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 181
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 205
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 208
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 208
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 212
ShortVariable Avoid variables with short names like ft 3 217
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 275
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 276
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 277
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 278
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 279
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 280

fr/paris/lutece/plugins/blog/service/search/BlogSearchIndexer.java

Rule Violation Priority Line
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 101

fr/paris/lutece/plugins/blog/utils/BlogLock.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3875
CommentRequired Public method and constructor comments are required 3 4449
CommentRequired Public method and constructor comments are required 3 5155
CommentRequired Public method and constructor comments are required 3 5761
CommentRequired Public method and constructor comments are required 3 6367
CommentRequired Public method and constructor comments are required 3 6973

fr/paris/lutece/plugins/blog/utils/BlogUtils.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 110
AssignmentInOperand Avoid assignments in operands 3 110
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 171172
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 220
CommentRequired Public method and constructor comments are required 3 244247

fr/paris/lutece/plugins/blog/web/BlogDashboardComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 108
ShortVariable Avoid variables with short names like t 3 119

fr/paris/lutece/plugins/blog/web/BlogFileServlet.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like os 3 104

fr/paris/lutece/plugins/blog/web/BlogJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341594
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.date.DateUtil' 4 109
ExcessiveClassLength Avoid really long classes. 3 1201594
TooManyMethods This class has too many methods, consider refactoring it. 3 1211594
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 262
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 3 264
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsUnpulished' 3 266
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 3 272
FieldNamingConventions The final field name '_blogServiceSession' doesn't match '[a-z][a-zA-Z0-9]*' 1 278
CyclomaticComplexity The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. 3 288444
ExcessiveMethodLength Avoid really long methods. 3 288444
NPathComplexity The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 13590 3 288444
NcssCount The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 94. 3 288444
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 290
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 297
ConfusingTernary Avoid if (x != y) ..; else ..; 3 304324
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 318
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 319
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 321
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 322
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 424
AddEmptyString Do not add empty strings 3 432
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 453
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 456
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 483
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 484
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 519
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 624
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 663
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 704
CyclomaticComplexity The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. 3 747808
ShortVariable Avoid variables with short names like tg 3 749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 750
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 751
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 752
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 754
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 755
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 782
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 790
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 823
CommentRequired Public method and constructor comments are required 3 891915
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 936
ConfusingTernary Avoid if (x != y) ..; else ..; 3 945956
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1027
ConfusingTernary Avoid if (x != y) ..; else ..; 3 10841091
ConfusingTernary Avoid if (x != y) ..; else ..; 3 11241131
ShortVariable Avoid variables with short names like tf 3 1156
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1177
ShortVariable Avoid variables with short names like is 3 1249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1297
CyclomaticComplexity The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. 3 13391400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1342
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1343
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1344
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1346
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1347
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 1374
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 1382
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1411
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1412
LinguisticNaming Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically 3 14541480
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1586
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1589
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1589

fr/paris/lutece/plugins/blog/web/BlogPublicationJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34480
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 146
CyclomaticComplexity The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. 3 147215
NPathComplexity The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 3 147215
ConfusingTernary Avoid if (x != y) ..; else ..; 3 154
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 236
ConfusingTernary Avoid if (x != y) ..; else ..; 3 285
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 4 289
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 4 290
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 292
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 4 298
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' 4 303
LinguisticNaming Linguistics Antipattern - The setter 'setFillFilter' should not return any type except void linguistically 3 323362
ConfusingTernary Avoid if (x != y) ..; else ..; 3 328359
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 423

fr/paris/lutece/plugins/blog/web/ManageBlogJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 52141
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 3 79
AddEmptyString Do not add empty strings 3 135

fr/paris/lutece/plugins/blog/web/TagJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 124
ConfusingTernary Avoid if (x != y) ..; else ..; 3 160
ConfusingTernary Avoid if (x != y) ..; else ..; 3 181
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 229
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 283
ConfusingTernary Avoid if (x != y) ..; else ..; 3 314

fr/paris/lutece/plugins/blog/web/insertservice/AbstractBlogInsertServiceJspBean.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 114

fr/paris/lutece/plugins/blog/web/insertservice/BlogPortletInsertServiceJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 50105

fr/paris/lutece/plugins/blog/web/insertservice/BlogResourceInsertServiceJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 49169

fr/paris/lutece/plugins/blog/web/insertservice/BlogUrlInsertServiceJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4798

fr/paris/lutece/plugins/blog/web/portlet/BlogListPortletJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34587
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 3 142
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsUnpulished' 3 144
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 3 147
AddEmptyString Do not add empty strings 3 203
CyclomaticComplexity The method 'filterBlogIds(HttpServletRequest)' has a cyclomatic complexity of 13. 3 226270
ConfusingTernary Avoid if (x != y) ..; else ..; 3 280302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 296
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 297
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 299
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 300
CommentRequired Public method and constructor comments are required 3 305336
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 307
ConfusingTernary Avoid if (x != y) ..; else ..; 3 350
ConfusingTernary Avoid if (x != y) ..; else ..; 3 370371
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 395
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 408
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 437
CyclomaticComplexity The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. 3 455516
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 470
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 473
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 508
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 538

fr/paris/lutece/plugins/blog/web/portlet/BlogPortletJspBean.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 145
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 149
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 168
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 189
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 211
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 214
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 4 247
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 4 247