Re: [Codenarc-user] @SuppressWarnings for Groovy scripts?
Brought to you by:
chrismair
From: Evgeny G. <ev...@gm...> - 2011-11-21 00:29:14
|
Hello, In my case there are no import or package statements in a script but this worked just fine: FileCreateTempFile ( doNotApplyToFileNames : 'Script.groovy' ) Thanks for the tip! On Sat, Nov 19, 2011 at 20:30, Hamlet D'Arcy <ham...@gm...> wrote: > An import or package annotation is supposed to work. > > -- > Hamlet D'Arcy > ham...@gm... > > On Nov 18, 2011 9:37 PM, "Evgeny Goldin" <ev...@gm...> wrote: > >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> 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. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Codenarc-user mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codenarc-user >> >> |