mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-10-24 17:48:50 +02:00
19 lines
433 B
JavaScript
19 lines
433 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
|
||
|
});
|
||
|
});
|
||
|
|
||
|
process.stdout.write(JSON.stringify(report));
|
||
|
}
|
||
|
};
|