[Codenarc-developer] UnusedMethodParameterRule - ignore main() method
Brought to you by:
chrismair
From: Chris M. <chr...@ea...> - 2011-10-29 01:36:29
|
Hamlet, Running CodeNarc snapshot against my projects at work, I am getting violations for UnusedMethodParameterRule on main() methods. I think it should ignore those methods by default. My first instinct would be to introduce a ignoreMethodNames property (defaulted to 'main') on that rule, consistent with the Naming, Size and other existing rules. But you seem to prefer regex. Do you have an opinion in this case? Or I guess we could hard-code it to just ignore main(). Chris |