1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-01-25 05:58:20 +01:00
phorge-arcanist/src/lint/linter/reporter.js
Joshua Spence a7327ca0e9 Modernize ArcanistJSHintLinter.
Summary: Modernize `ArcanistJSHintLinter` by extending from `ArcanistExternalLinter` instead of `ArcanistLinter`.

Test Plan: Wrote and executed unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8965
2014-05-05 14:22:27 -07:00

19 lines
532 B
JavaScript

module.exports = {
reporter: function (results) {
var report = [];
results.forEach(function (result) {
var error = result.error;
report.push({
'file' : result.file,
'line' : error.line,
'col' : error.character,
'reason' : error.reason,
'code' : error.code,
'evidence': error.evidence,
});
});
process.stdout.write(JSON.stringify(report));
}
};