Вопрос

we are using Jenkins for our CI.

Our code is mainly in PHP (Zend framework), and we would like to validate every commit to comply with WCAG standards.

Alternatively, we would like to validate the HTML using some customs rules (no IMG tag without ALT attribute, no HTML tag without lang, etc).

Does anyone know a good plugin that might be useful or have some lead to implement a solution?

Thank you

Это было полезно?

Решение

If you don't want to code some checks yourself have a look at HTML_CodeSniffer the sources are on Github. You can call that via jenkins "Execute Shell" or in your build scripts.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top