jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 511 forks source link

Error running rule maximumLineLength #2107

Closed tofumatt closed 8 years ago

tofumatt commented 8 years ago

Encountered this on https://travis-ci.org/mozilla/dispensary/builds/105721365

Error running rule maximumLineLength: This is an issue with JSCS and not your codebase.
Please file an issue (with the stack trace below) at: https://github.com/jscs-dev/node-jscs/issues/new
TypeError: Cannot read property 'loc' of null
    at removeLoc (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/rules/maximum-line-length.js:138:37)
    at Object.<anonymous> (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/rules/maximum-line-length.js:159:17)
    at Array.forEach (native)
    at Object.JsFile.iterateNodesByType (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/js-file.js:595:42)
    at Object.module.exports.check (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/rules/maximum-line-length.js:158:18)
    at [object Object].<anonymous> (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/string-checker.js:165:22)
    at Array.forEach (native)
    at [object Object].StringChecker._checkJsFile (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/string-checker.js:161:31)
    at [object Object].StringChecker.checkString (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/string-checker.js:106:14)
    at [object Object].<anonymous> (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/jscs/lib/checker.js:56:21)
    at Array.<anonymous> (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/vow/lib/vow.js:712:39)
    at Immediate.callFns [as _onImmediate] (/Users/matt/Projects/dispensary/node_modules/grunt-jscs/node_modules/vow/lib/vow.js:23:35)
    at processImmediate [as _immediateCallback] (timers.js:358:17) at src/hasher.js :
     1 |import createHash from 'sha.js';
--------^
     2 |
     3 |
>> 1 code style errors found!
Warning: Task "jscs:js" failed. Use --force to continue.