-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON linter not commenting on the correct line #95
Comments
I guess this is a JSON issue, and not a
|
I can't see public access to the source for |
Seems legit: $ jsonlint -c has_errors.json
has_errors.json: line 1, col 0, found: 'INVALID' - expected: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['.
$ jsonlint -c has_warnings.json
has_warnings.json: line 2, col 8, found: 'INVALID' - expected: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['.
$ jsonlint -c no_errors.json
{
"one": "value",
"two": 2
} |
I take that back. The errors are definitely not as pretty, and it doesn't have have warnings. The npm one hasn't been updated in two years.
|
Looking at how Yelp's pre-commit does checking if JSON is correct and compares it to pretty formatted JSON, maybe we should do this ourselves? Though I guess as a standalone library? |
@zoidbergwill If you build a tool that can be integrated with lintreview, we could switch tools 😄 |
If
"three": "three"
was added in the PR, lintreview wouldn't comment on this error, as it reports the error 1 line down.I'm not sure what the solution so this problem is.
The text was updated successfully, but these errors were encountered: