/stylelint-checkstyle-reporter

Output Checkstyle XML reports of stylelint results

Primary LanguageTypeScriptMIT LicenseMIT

stylelint-checkstyle-reporter

Build Status

Output Checkstyle XML reports of stylelint results, which might be handy if you use the Jenkins Checkstyle Plugin, so you can have graphs and be professional.

Usage

You will want to run this command

stylelint "**/*.css" --custom-formatter node_modules/stylelint-checkstyle-reporter/index.js -o stylelint.xml >/dev/null 2>&1

The pipe to /dev/null is optional but spares you the XML output on your console.

You can also use this project in a JavaScript file of yours to customise the output. An example can be found here. The second parameter is passed along to xmlbuilder2, so you can see possible values in the XMLWriterOptions interface.

For more information, read the stylelint documentation about using formatters and follow those instructions.

Credit

This project has initial been written by David Clark under the name stylelint-checkstyle-formatter.