Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven - JSP Static Code Analysis

 
Anish Pyne
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any Maven plugins or stand alone tools available to do static analysis of JSP code? I am handling a very old application with lots of JSPs having badly coded scriplets in them. Getting rid of all the scriplets will take a long time hence next best is to improve the code as much as possible. Need something similiar like FindBugs which does awesome code analysis of .java code.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PMD will look at JSPs. It has a Maven plugin, but PMD only works on well formed JSP files. I recommend writing your own pre-processort to get rid of the HTML code to "simulate" well formedness and then run PMD via the Maven plugin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic