Re: [Codenarc-user] CodeNarc plugin for IntelliJ IDEA
Brought to you by:
chrismair
From: Cédric C. <ced...@gm...> - 2011-01-21 16:06:19
|
Thanks ;) I'm unsure about what are the best things to do to improve the integration. The first problem I have is that the line number isn't sufficient : IntelliJ uses its own AST where nodes are PsiElement subclasses. When an inspection reports an error, it must provide the PsiElement for which it occurs. As I don't know the exact element which has thrown the error, I'm doing a quick hint : choose the first PsiElement that's on line X. If the violation class could also return an ASTNode, I guess I could trigger more heuristics to find the good PsiElement. For a better user experience, inspections also show a short description of the problem. CodeNarc rules have a name, a description of what the rule analyzes (found in a separate resource bundle), but no short description (when the error is actually found). Moreover, the names are not really that user friendly, though the name of the class is rather self explanatory : http://twitpic.com/3s0xvb/full Cédric Le 21/01/2011 16:31, Hamlet DArcy a écrit : > This is awesome Cédric, I owe you one. > > What can we do with our output to make it play better in the IDE? > > -- > Hamlet D'Arcy > ham...@ca... > > ----- Original Message ----- >> Hi, >> >> Those who are brave enough could test the beta release of the plugin >> for >> IntelliJ IDEA that I've just pushed to GitHub. Basically, it adds >> support for CodeNarc rules as IntelliJ IDEA inspections. Those >> inspections are available both on the fly and on demand. >> >> Some limitations though : >> - no support for quick fixes >> - as CodeNarc only reports the line number, on long lines, you >> won't know precisely where the violation is >> >> Project home : https://github.com/melix/codenarc-idea >> Download the beta release : >> https://github.com/downloads/melix/codenarc-idea/CodeNarcPlugin-0.1-beta.zip >> >> Bug reports and contributions are welcome ;) >> >> Cédric >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Codenarc-user mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codenarc-user |