mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-25 05:58:20 +01:00
a7327ca0e9
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
19 lines
532 B
JavaScript
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));
|
|
}
|
|
};
|