Re: [Codenarc-user] CodeNarc: Adding Custom Rules in a Grails project
Brought to you by:
chrismair
From: Chris M. <chr...@ea...> - 2011-05-01 18:50:01
|
>> I have not been able yet to use a custom rule class (compiled) from within the CodeNarc plugin. >> I’ll try to look into that a bit more next week. I was able to use a rule script, however. After doing a little more research, it looks like a Grails Plugin is intentionally not given (direct) access to application classes. See http://grails.1312388.n4.nabble.com/Can-a-plugin-use-an-application-level-class-td3330014.html, including: “Can a Grails plugin access an application level class? … No. The only way is via dynamic class loading … Or refactor that class into another plugin :)” Chris |