Re: [Codenarc-user] @SuppressWarnings for Groovy scripts?
Brought to you by:
chrismair
From: Chris M. <chr...@ea...> - 2011-11-19 18:09:51
|
Evgeny, As a workaround, you could disable the rule(s) just for the script files, using the doNotApplyToFileNames (name with optional wildcards) or doNotApplyToFilesMatching (regular expression) properties, either within your ruleset, or within “codenarc.properties”. http://codenarc.sourceforge.net/codenarc-configuring-rules.html#Standard_Properties_for_Configuring_Rules Perhaps Hamlet has ideas about the @SuppressWarnings support within scripts. Chris From: Evgeny Goldin [mailto:ev...@gm...] Sent: Friday, November 18, 2011 3:36 PM To: cod...@li... Subject: [Codenarc-user] @SuppressWarnings for Groovy scripts? Hi, Is it possible to somehow specify @SuppressWarnings for a regular Groovy script? I have my scripts scanned with CodeNarc as well, and doesn't want to disable the whole rule that I'd rather not fix in one of the scripts. Just stating it in the script body has no effect. If it's not possible - is there any workaround you can think of? Warm regards, Evgeny |