Are there any Maven based HTML Validators
I'm using Sonar with the 2 significant plugins as
- XML Plugin
This plugin enables analysis of XML files within Sonar. Some common use cases are:
- Validation of XHTML files against schemas provided by the W3C (strict, transitional, and others)
- Validation of XML files against a provided XML schema
- Validation of rules in XML files (ex: validate the Maven pom files against coding standards)
2 .Web Plugin
The plugin provides static code analysis of web files within Sonar. Currently JSP and JSF are supported. Some initial support is provided for Ruby templating (erb files).
The following metrics are supported:
- sizing (files, lines of code)
- rules compliancy
The plugin scans the following files by default: .xhtml, .jspf, .jsp. The file extensions are configurable.
The plugin imports the source code in Sonar, calculates measurements and scans the code for violations, duplications and complexity. The checks are configurable in the Sonar rules repository.
All of them are open source. Anyhow the Sonar also provides the commercial plugin named Web(HTML, JSP) as well.