Re: [Codenarc-developer] [Codenarc-user] Considering Reorganizing the "Basic" RuleSet --> GroovyIdi
Brought to you by:
chrismair
From: Hamlet D. <ham...@ca...> - 2011-10-17 06:12:01
|
It really doesn't matter to me how the rules are reorganized. There are enough new rules with each release that you need to reconfigure things anyway. One option is to print warnings when mis-configurations are found. If you know a rule is moved, then add code to the property file reader that looks for incorrect packages and such. ----- Original Message ----- > > > > > To CodeNarc Users, > > > > I am considering moving a subset of the rules currently in the > CodeNarc “ Basic ” ruleset into one or more other new rulesets, > probably including at least a ruleset encoding Groovy-specific > idioms or best practices. > > > > I do not make this decision lightly. I know this will impact current > users (including me), requiring adjustment of custom CodeNarc > rulesets, if they: > > · Include the “Basic” ruleset and then configured any of the affected > rules within that ruleset closure. > > · Include rules explicitly by class name > > > > My motivations include: > > Ø The “Basic” ruleset has strayed from my original intent of being a > core set of serious and uncontroversial rules. All violations of > these should be fixed. As it is now, that ruleset includes a bunch > of rules that are less-important or are not universal practices. > > Ø The “Basic” ruleset has become large and unwieldy. > > Ø There may be value in having a separate ruleset encoding > Groovy-specific idioms. > > > > That all being said, I’d like to (continue to) reduce the emphasis on > the organization and categorization of the predefined ruleset > anyway. I’d like users to be able to focus more on the rules, not > really caring which rulesets contain them. > > > > Some Basic Rules That Could Be Groovy-Specific (“GroovyIdiom” or > “Groovyism”?) > > • AssignCollectionSort > • AssignCollectionUnique > • ClosureAsLastMethodParameter > • ExplicitArrayListInstantiation > • ExplicitCallToAndMethod > • ExplicitCallToCompareToMethod > • ExplicitCallToDivMethod > • ExplicitCallToEqualsMethod > • ExplicitCallToGetAtMethod > • ExplicitCallToLeftShiftMethod > • ExplicitCallToMinusMethod > • ExplicitCallToModMethod > • ExplicitCallToMultiplyMethod > • ExplicitCallToOrMethod > • ExplicitCallToPlusMethod > • ExplicitCallToPowerMethod > • ExplicitCallToRightShiftMethod > • ExplicitCallToXorMethod > • ExplicitGarbageCollection > • ExplicitHashMapInstantiation > • ExplicitHashSetInstantiation > • ExplicitLinkedHashMapInstantiation > • ExplicitLinkedListInstantiation > • ExplicitStackInstantiation > • ExplicitTreeSetInstantiation > • GStringAsMapKey > • GroovyLangImmutable > > > > Please let me know if you have any opinions one way or another. > > > > Thanks. > > Chris > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and > makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user > |