chrismair / GrailsCodeNarcPlugin

Grails CodeNarc plugin
Apache License 2.0
10 stars 5 forks source link

Codenarc plugin compatible with grails-2.2.0 #15

Open mahuaroy1991 opened 6 years ago

mahuaroy1991 commented 6 years ago

Hi, I have a project which uses GRAILS-2.2.0 and I want to integrate one particular codenarc version plugin with it, as per my understanding we should go with 0.25.2 codenarc version but I'm finding difficulties to integrate the same with my project in IntellijIdea. What shall be my approach in it? The codenarc codebase which I have downloaded is codenarc-0.25.2; in this version it is it possible to add new rules and customize some already written rules? Please let me know. If there is any detailed documentation of the same provide me with the information.

chrismair commented 6 years ago

It is not possible to add new rules or make code changes to existing rules when using the Grails CodeNarc plugin. From the Plugin home page:

Note that your custom ruleset cannot refer to a custom rule defined within the Grails application. This is due to a Grails classpath issue, discussed here.

But you can customize existing CodeNarc rules using the capabilities described at: http://codenarc.sourceforge.net/codenarc-configuring-rules.html