Hamlet D'Arcy has been writing software for over a decade, and has spent considerable time coding in C++, Java, and Groovy. He's passionate about learning new languages and different ways to think about problems, and recently he's been discovering the joys of both F# and Scheme. He's an active member of the Groovy Users of Minnesota and the Object Technology User Group, is a committer on the Groovy project, and is a contributor on a few open source projects (including JConch and the IDEA Groovy Plugin). He blogs regularly at http://hamletdarcy.blogspot.com and can be found on Twitter as HamletDRC (http://twitter.com/hamletdrc). Hamlet is a DZone MVB and is not an employee of DZone and has posted 28 posts at DZone. You can read more from them at their website. View Full User Profile

Static Code Analysis in IDEA screencast

03.30.2011
| 4289 views |
  • submit to reddit

Well, well, I made another screencast. This time I'm taking on IntelliJ IDEA code inspections, and writing your own static code analysis rule (and quick fix!) using Structural Search & Replace. Not bad for under 5 minutes.

If you have any trouble viewing the video then perhaps you should watch it directly on the JetBrains site. And if you're feeling generous, then clicky clicky to upvote at DZone.

 screenshot

Check out these pages for more information on IDEA inspections: 

Read these pages to learn more about Structural Search and Replace: 

I've made a lot of screencasts and blog posts over the years. If you like this, then there are many ways to see the other stuff I've done: 

Phew, that's a lot of self-promotion :)

Thanks for watching, and leave a comment! 

Published at DZone with permission of Hamlet D'Arcy, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Slava Lo replied on Wed, 2011/03/30 - 6:27am

Never used structural search based inspections, very useful, great screencast!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.