Re: [Codenarc-developer] FW: [ codenarc-Feature Requests-3392455 ] Ignore MethodName for all Spec m
Brought to you by:
chrismair
From: Hamlet D. <ham...@ca...> - 2011-08-17 05:47:33
|
I bet that you can configure the rule to do this. Don't the tests all share a naming convention? Or are JUnit and Spock specs mixed together? If we do fix this... then I propose a new global rule property: ignoreSubclasses = [pattern] So we would ignore the rule based on if an entry in the extends/implements clause matches the regex. For instance: ignoreSubclasses = (Specification|*.TestCase) It would be regex based, not type system based, because not all the classes are visible or on the classpath. Then we have a nice, global way to configure rules. -- Hamlet ----- Original Message ----- > Any thoughts on this issue? > > It is fairly simple and straightforward to configure the MethodName > rule (or any rule) to ignore classes by name or by filename or > regex. I am hesitant to put framework-specific logic in generic > rules, as suggested. But I guess we already do that so some extent > by ignoring test classes (by default) for certain rules. > > -----Original Message----- > From: SourceForge.net [mailto:no...@so...] > Sent: Tuesday, August 16, 2011 10:03 AM > To: SourceForge.net > Subject: [ codenarc-Feature Requests-3392455 ] Ignore MethodName for > all Spec method > > Feature Requests item #3392455, was opened at 2011-08-16 16:02 > Message generated for change (Tracker Item Submitted) made by > musketyr You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=1126575&aid=3392455&group_id=250145 > > Please note that this message will contain a full copy of the comment > thread, including the initial issue submission, for this request, > not just the latest update. > Category: None > Group: None > Status: Open > Priority: 5 > Private: No > Submitted By: Vladimír Oraný (musketyr) > Assigned to: Nobody/Anonymous (nobody) > Summary: Ignore MethodName for all Spec method > > Initial Comment: > As Spock is being more and more used among Groovy developers CodeNarc > should not complain about nonstandard method name in classes > extending directly or indirectly from spock.lang.Specification > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=1126575&aid=3392455&group_id=250145 > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Codenarc-developer mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-developer > |