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]*' 277

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
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
ExcessiveMethodLength Avoid really long methods. 606734
NcssCount The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. 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
CommentRequired Header comments are required 656
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 656
ShortVariable Avoid variables with short names like id 8
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the id field if you want a default access modifier 8
DefaultPackage Use explicit scoping instead of the default package private level 8
DefaultPackage Use explicit scoping instead of the default package private level 9
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier 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
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 56
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 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 6770
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 76

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. 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79
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. 34486
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
CyclomaticComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 12. 321410
NPathComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 432 321410
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 408
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 408
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 409

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. 341600
ExcessiveClassLength Avoid really long classes. 1191600
TooManyMethods This class has too many methods, consider refactoring it. 1201600
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 261
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 263
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 271
CyclomaticComplexity The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. 287450
NPathComplexity The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 9480 287450
NcssCount The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 97. 287450
ExcessiveMethodLength Avoid really long methods. 287450
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 289
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 296
ConfusingTernary Avoid if (x != y) ..; else ..; 303331
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 325
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 326
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 327
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 328
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 430
AddEmptyString Do not add empty strings 438
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 459
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 462
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 489
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 490
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 525
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 630
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 669
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 710
CyclomaticComplexity The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. 753814
ShortVariable Avoid variables with short names like tg 755
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 755
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 756
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 758
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 760
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 761
PositionLiteralsFirstInComparisons Position literals first in String comparisons 788
PositionLiteralsFirstInComparisons Position literals first in String comparisons 796
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 829
CommentRequired Public method and constructor comments are required 897921
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 942
ConfusingTernary Avoid if (x != y) ..; else ..; 951962
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1033
ConfusingTernary Avoid if (x != y) ..; else ..; 10901097
ConfusingTernary Avoid if (x != y) ..; else ..; 11301137
ShortVariable Avoid variables with short names like tf 1162
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1183
ShortVariable Avoid variables with short names like is 1255
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1303
CyclomaticComplexity The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. 13451406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1347
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1348
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1349
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1350
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1352
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1353
PositionLiteralsFirstInComparisons Position literals first in String comparisons 1380
PositionLiteralsFirstInComparisons Position literals first in String comparisons 1388
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1417
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1418
LinguisticNaming Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically 14601486

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
NPathComplexity The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 147215
CyclomaticComplexity The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. 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. 34595
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 142
RedundantFieldInitializer Avoid using redundant field initializer for '_nIsUnpublished' 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 12. 226269
ConfusingTernary Avoid if (x != y) ..; else ..; 279310
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 304
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 305
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 307
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 308
CommentRequired Public method and constructor comments are required 313344
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 315
ConfusingTernary Avoid if (x != y) ..; else ..; 358
ConfusingTernary Avoid if (x != y) ..; else ..; 378379
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 413
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 416
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 445
CyclomaticComplexity The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. 463524
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 478
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 481
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 516
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 546

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

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' 88

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
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1592
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1595
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 1595

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
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
ExcessiveMethodLength Avoid really long methods. 3 606734
NcssCount The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. 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

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
CommentRequired Header comments are required 3 656
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 656
ShortVariable Avoid variables with short names like id 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
FieldNamingConventions The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' 1 8
DefaultPackage Use explicit scoping instead of the default package private level 3 8
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
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier 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
ShortClassName Avoid short class names like Tag 4 40145
CommentRequired Header comments are required 3 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
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 56
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 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 6770
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 72
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 76
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' 4 88

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
ArrayIsStoredDirectly The user-supplied array 'aPortletTitle' is stored directly. 3 89
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 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 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 79
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 34486
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
CyclomaticComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 12. 3 321410
NPathComplexity The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 432 3 321410
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 408
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 408
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 409

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 341600
ExcessiveClassLength Avoid really long classes. 3 1191600
TooManyMethods This class has too many methods, consider refactoring it. 3 1201600
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 261
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 3 263
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsSorted' 3 271
FieldNamingConventions The final field name '_blogServiceSession' doesn't match '[a-z][a-zA-Z0-9]*' 1 277
CyclomaticComplexity The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. 3 287450
NPathComplexity The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 9480 3 287450
NcssCount The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 97. 3 287450
ExcessiveMethodLength Avoid really long methods. 3 287450
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 289
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 296
ConfusingTernary Avoid if (x != y) ..; else ..; 3 303331
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 325
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 326
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 327
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 328
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 430
AddEmptyString Do not add empty strings 3 438
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 459
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 462
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 489
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 490
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 525
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 630
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 669
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 710
CyclomaticComplexity The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. 3 753814
ShortVariable Avoid variables with short names like tg 3 755
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 755
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 756
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 758
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 760
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 761
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 788
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 796
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 829
CommentRequired Public method and constructor comments are required 3 897921
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 942
ConfusingTernary Avoid if (x != y) ..; else ..; 3 951962
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1033
ConfusingTernary Avoid if (x != y) ..; else ..; 3 10901097
ConfusingTernary Avoid if (x != y) ..; else ..; 3 11301137
ShortVariable Avoid variables with short names like tf 3 1162
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1183
ShortVariable Avoid variables with short names like is 3 1255
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1303
CyclomaticComplexity The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. 3 13451406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1347
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1348
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1349
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1350
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1352
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1353
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 1380
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 1388
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1417
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1418
LinguisticNaming Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically 3 14601486
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1592
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1595
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 1595

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
NPathComplexity The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 3 147215
CyclomaticComplexity The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. 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 34595
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsChecked' 3 142
RedundantFieldInitializer Avoid using redundant field initializer for '_nIsUnpublished' 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 12. 3 226269
ConfusingTernary Avoid if (x != y) ..; else ..; 3 279310
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 304
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 305
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 307
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 308
CommentRequired Public method and constructor comments are required 3 313344
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 315
ConfusingTernary Avoid if (x != y) ..; else ..; 3 358
ConfusingTernary Avoid if (x != y) ..; else ..; 3 378379
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 413
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 416
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 445
CyclomaticComplexity The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. 3 463524
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 478
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 481
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 516
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 546

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