[Codenarc-developer] codenarc support for @SuppressWarnings
Brought to you by:
chrismair
From: Hamlet D'A. <ham...@gm...> - 2010-11-04 15:38:42
|
Hi chris, I just checked in DuplicateLiteral. The interesting part is that you can suppress the rule by annotating the class or method with: @SuppressWarning('DuplicateLiteral') First off, you might want to search the CodeNarc codebase for this suppression and see where I had to use it. You may want to clean up some code. Secondly, there is a general way to add SuppressWarning support to all rules by modifying the base visitor. I am going to take a look at doing this. What do you think? -- Hamlet D'Arcy ham...@gm... |