coding style - Checkstyle equivalent for JSPs? -


Is there any device for JSP files for Java files?

I would like to see the JSP files for example:

  • indentation style
  • Correct placement of some constructs
  • Tab / space check
  • Check the use of scripts

Thanks Emerson

Yes, some are similar (but not really for those checks): You can use the IntelliJ IDEA's "Inspection" activator to inspect JSP for various problems The capacity, and those inspections can be run from the command line (use inspect.bat in IntelliJ / bin directory).

For this you will need to make a "profile" to include only the desired JSP inspections, check it with IDE (analysis / inspection code), and if they are okay, Also run (and call them with your build tool). / P>

Depending on those existing JSP inspections, you can also write other inspections (but this requires a little more skill because there is no good document for it - just source code of the intelligencing plug-in And support forum)


Comments