[CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records. To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com
About a year ago I tried CodeNarc. At the time it was just *sort of*
useful. Most of the rules were around naming conventions or obvious
errors. Many of the problems it reported were stuff I didn't care
about, and the IntelliJ IDEA inspections were far superior for finding
bugs. But CodeNarc has changed a lot in the last year and a lot of new
rules have been added. I wrote up an unofficial guide to the latest
release here: http://www.canoo.com/blog/2010/11/13/groovy-codenarc-0-11-unofficial-guide/.
There are a whole bunch of concurrency related rules now, as well as
dead code analysis and other interesting rules.
I use Groovy mostly in mixed Java/Groovy projects. (If you have a
Grails project for me then let me know :) ). Many of the rules in the
product today are focused on writing idiomatic Groovy code. When we're
doing code reviews and we spot a problem ("Hey, you should really use
a spread" or "don't call plus() just use +") then we add it as a rule
to the product. As such, the ruleset focuses sometimes more on proper
Groovy usage rather than catching bugs.
CodeNarc does not run in an IDE except as an external tool using the
command line interface. It can be run as a JUnit test, which is an
easy way to integrate it into your build with no fuss and no build
configuration. False positives can be ignored using the
@SuppressWarnings annotation and all rules can be configured.
I think you should try CodeNarc. Codenarc 0.12 is going to be released
in a week or two. Our biggest issue right now deciding on the new
logo. You can imagine how this conversation has gone.
If you want IDE support, a larger ruleset, and rules focused on
finding bugs then use IntelliJ IDEA. The IDEA inspections can be run
from the command line with a valid .ipr or .idea project file, so they
can be used in the IDE and the build.
Thanks,
--
Hamlet D'Arcy
haml...@gmail.com
> --
> You received this message because you are subscribed to the "Groovy Users of
> Minnesota" group.
>
> To post to this group, send email to groo...@googlegroups.com
> To unsubscribe from this group, send email to
> groovymn-u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/groovymn?hl=en