Closed Arcanemagus closed 8 years ago
I'm new to this codebase, but I've been digging into it, trying to figure this out. I'm not exactly sure what's going on. At the moment, I think it has something to do with TokenIndex._buildIndex which is where the __loc
gets assigned to each token. (Those __loc values are the first time I can see erroneous line numbers show up in the output.) I'm just dropping console.logs in the source, not sure if there's a better way to track this down.
For reference, a fix for one of the duplicates is up in https://github.com/jscs-dev/node-jscs/pull/2252.
When running
jscs
v3.0.3 against this file:foo.js
:With this configuration:
.jshintrc
:I get the following error in the output:
If the reporter is changed to JSON, it seems to be incrementing the line value for every element?
Using the Node API (Inside the
linter-jscs
Atom package) returns results similar to the JSON output. Note that this was initially filed hereA folder with a minimal reproduction case is included here: linter-jscs_GH239.zip
If there is any further information you need just let me know.