checkstyle-formatter
Simple Checkstyle data formatter. Formats data to an XML string, leaving the
reporting details to the user.
Installation
Install using npm:
$ npm install checkstyle-formatter
Usage
var checkstyleFormatter = require('checkstyle-formatter');
var results = [
{
filename: 'foo.js',
messages: [
{
line: 1,
column: 2,
severity: 'warning',
message: 'the quick'
},
{
line: 3,
column: 4,
severity: 'error',
message: 'brown fox'
}
]
},
{
filename: 'bar.js',
messages: [
{
line: 5,
column: 6,
severity: 'warning',
message: 'jumped over'
},
{
line: 7,
column: 8,
severity: 'error',
message: 'the lazy dog'
}
]
}
];
console.log(checkstyleFormatter(results));
Changelog
1.1.0
- Add support for optional
source
information
1.0.0
License
MIT