SonarSource/sonar-html
Static analyzer for HTML used in Sonar ecosystem
What's novel
Static analyzer for HTML used in Sonar ecosystem
Code Analysis
11 files read · 7 roundsA SonarQube plugin that provides static analysis rules for HTML/JSP/ERB web templates with a sophisticated lexer capable of parsing nested template syntax and complex quote escaping scenarios.
Strengths
Exceptional lexer implementation handling edge cases like nested tags in attributes, multiple template engines, and malformed HTML recovery. Clean visitor pattern architecture with comprehensive test coverage including real-world integration tests. Strong accessibility foundation with well-documented constants referencing authoritative sources.
Weaknesses
Cannot fully evaluate rule implementations without seeing concrete check classes (XSS, ARIA rules). Some deprecated HTML tags are still included in the known list which could be cleaned up.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
239
Contributors
56
Files
1002
Active weeks
34
Repository
Language
Java
Stars
57
Forks
50
License
NOASSERTION