checkstyle-formatter is a simple Node.js library for formatting lint results into Checkstyle XML (version 4.3). The current stable version is 1.1.0, with a low release cadence (minor updates as needed). It takes an array of file/message objects and outputs an XML string. Unlike full-featured reporters (e.g., eslint formatters), it leaves reporting details to the user and has zero dependencies. Supports optional 'source' information since v1.1.0. MIT licensed.
npm install checkstyle-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Formats two files with lint messages into Checkstyle XML output.
Migrate to using the standard results array format described in the README.
Upgrade to v1.1.0 if you need 'source' support.
If you need different XML declaration, post-process the output string.
Ensure severity is lowercase: 'warning' or 'error'.
Use `const checkstyleFormatter = require('checkstyle-formatter');` or `import checkstyleFormatter from 'checkstyle-formatter';`Add `"type": "module"` to package.json or use `.mjs` extension, or switch to `require`.
Ensure you are not prepending any characters to the returned string.
No dependency data recorded yet.