We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How do I populate the quickfix list with eslint errors?
eslint
The text was updated successfully, but these errors were encountered:
shellcheck outputs a fix when using it's JSON format.
fix
test.sh
#!/bin/bash echo `ls -al`
Running cat test.sh | shellcheck --format=json - | jq yields
cat test.sh | shellcheck --format=json - | jq
[ { "file": "-", "line": 3, "endLine": 3, "column": 6, "endColumn": 14, "level": "warning", "code": 2046, "message": "Quote this to prevent word splitting.", "fix": null }, { "file": "-", "line": 3, "endLine": 3, "column": 6, "endColumn": 14, "level": "style", "code": 2005, "message": "Useless echo? Instead of 'echo $(cmd)', just use 'cmd'.", "fix": null }, { "file": "-", "line": 3, "endLine": 3, "column": 6, "endColumn": 14, "level": "style", "code": 2006, "message": "Use $(...) notation instead of legacy backticks `...`.", "fix": { "replacements": [ { "line": 3, "endLine": 3, "precedence": 7, "insertionPoint": "afterEnd", "column": 6, "replacement": "$(", "endColumn": 7 }, { "line": 3, "endLine": 3, "precedence": 7, "insertionPoint": "beforeStart", "column": 13, "replacement": ")", "endColumn": 14 } ] } } ]
It would be neat if this was somehow capable of sending that on to coc.
Sorry, something went wrong.
No branches or pull requests
How do I populate the quickfix list with
eslint
errors?The text was updated successfully, but these errors were encountered: