PMD :: analise design rules and controversial rules

Bug #1209677 reported by Richard Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JQuantLib
Incomplete
Low
Unassigned

Bug Description

Tags: tools
Revision history for this message
Satyendra Gurjar (satyendragurjar) wrote :

following design and controversial rules could be helpful. comments/feedback?

design rules
============
ConstructorCallsOverridableMethod
FinalFieldCouldBeStatic
CloseResource
InstantiationToGetClass
MissingBreakInSwitch
UseCollectionIsEmpty

controversial rules
============
CallSuperInConstructor
DefaultPackage
AvoidUsingShortType
DoNotCallGarbageCollectionExplicitly

Revision history for this message
Richard Gomes (frgomes) wrote :

Could you please review my comments and eventually suggest something else?
Would you like to contribute to activate these rules?

design rules
============
ConstructorCallsOverridableMethod - agreed

FinalFieldCouldBeStatic - agreed

CloseResource - agreed
(in spite we dont employ Connection, Statement and ResultSet in JQL)

InstantiationToGetClass - agreed

MissingBreakInSwitch - agreed
(need to evaluate if this rule generate false positives)

UseCollectionIsEmpty - agreed

controversial rules
============
CallSuperInConstructor - agreed

DefaultPackage - disagree.
Reason: We have a specifig annotation (@PackagePrivate) which is intended to explicitly tell a certain field of method is package private, i.e: a 'default' visibility (nothing specified, in fact) should be considered wrong and one shoule explicitly use @PackagePrivate in order to explicitly state what is needed. There's also rules intended to detect missing @PackagePrivate annotation on methods, fields and classes.

AvoidUsingShortType - agreed

DoNotCallGarbageCollectionExplicitly - agreed

Revision history for this message
Richard Gomes (frgomes) wrote :

Kicked to v0.1.4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.