-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce HTML tidy checks for HTML descriptions #1456
Conversation
* create check_rules.sh and extend cppcheck_createrules.py -> for each rule.xml in cxx-sensors/main/resources: check rule.xml with xmllint parse rule.xml for each rule in rule.xml: dump rule.attr("description") to tmp.ruledump check tmp.ruledump with tiny-html5 * fix isses w.r.t. HTML formatting and escaping
@ivangalkin we are using Travis for testing with Linux. The entry point is the file https://github.com/SonarOpenCommunity/sonar-cxx/blob/master/.travis.yml. You can try to add your script in the Not sure if |
|
||
|
||
def call_tidy(file_path): | ||
command = ["/home/igalkin/workspace_myGITHUB/tidy-html5/build/cmake/tidy", file_path] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
script is using a local path from your PC
@guwirth thank you for the comments and the information about travis |
@Bertk ready to merge? |
@Bertk any comments. Will merge it this evening... |
@guwirth is there a chance to activate check_rules.sh in continuous integration? FYI it uses [linux] tools (xmllint and tidy-html5), which probably have to installed additionally.
This change is