Groovy scripts

6 views
Skip to first unread message

ogourment

unread,
Jan 9, 2011, 2:06:09 PM1/9/11
to GroovyLint
Hi,

I've tried groovylint on two projects so far, and it worked fine.
However in order to use it on other projects, I would need to prefix
many, far too many, dynamic variables using ".this".

The problem occurs with Groovy scripts (for example groovylint doesn't
know about "args") and Grails configuration files.

In such files, I can't use the
@org.groovylint.DisableGroovyLint("dynamic_field_access") as there is
no class or methods..

This is particularly painful with Grails, where, for example, the
grails-app/conf/Config.groovy itself generates a dozen such errors...

Would it be possible to turn this one off by default in scripts?

Thanks,

Olivier

Kyle

unread,
Jan 9, 2011, 8:07:37 PM1/9/11
to GroovyLint
Hi Olivier,

Good suggestion. I turned the dynamic_field_access check off for
scripts. You can download the new file at http://www.groovylint.com.

I tested it with a few scripts, but didn't test it with grails. Let
me know if you find any other problems :)

-Kyle
Reply all
Reply to author
Forward
0 new messages