[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lucavb/stylelint-checkstyle-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

There are now two ways to use this package:

Through --custom-formatter

You will want to run this command

stylelint "**/*.css" --custom-formatter node_modules/stylelint-checkstyle-reporter/dist/stylelint-checkstyle-reporter.mjs -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.

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

Through Bash pipes

The alternative would be to use a bash pipe

stylelint -f json "**/*.css" 2>&1 | npx stylelint-checkstyle-reporter > stylelint-result.xml

The benefit would be the somewhat shorter syntax compared to the first approach.

Credit

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

About

Output Checkstyle XML reports of stylelint results

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 87.4%
  • JavaScript 9.3%
  • Shell 2.0%
  • SCSS 1.3%