Plato on Github
Report Home
node_modules/jshint/src/reporters/default.js
Maintainability
64.78
Lines of code
34
Difficulty
15.00
Estimated Errors
0.22
Function weight
By Complexity
By SLOC
"use strict"; module.exports = { reporter: function (results, data, opts) { var len = results.length; var str = ''; var prevfile; opts = opts || {}; results.forEach(function (result) { var file = result.file; var error = result.error; if (prevfile && prevfile !== file) { str += "\n"; } prevfile = file; str += file + ': line ' + error.line + ', col ' + error.character + ', ' + error.reason; if (opts.verbose) { str += ' (' + error.code + ')'; } str += '\n'; }); if (str) { console.log(str + "\n" + len + ' error' + ((len === 1) ? '' : 's')); } } };