-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
JetBrains Webstorm Integration #360
Comments
There's probably already a CheckStyle plugin for these, in which case you can use it with shellcheck's CheckStyle compatible xml output. |
@koalaman , I could not find any plugins for WebStorm that can validate source code as good as shellcheck, not even close. The only plugin available for bash in WebStorm is: http://plugins.jetbrains.com/plugin/?id=4230 |
I meant that the plugin wouldn't have to support bash at all. You can use a plugin that only supports validating for example C or Java code. This works because shellcheck can mimic some of the underlying tools these plugins use:
Since all these error messages have the same format, any plugin that supports showing errors from Similarly, ShellCheck can output CheckStyle XML, which your site lists an IDEA plugin for (but not a WebStorms plugin). I don't have access to WebStorms so I can't test or suggest which plugins work well this way. However, it works fine in other editors that nominally only supports |
I have a usage in WebStorms. Go to File | Settings | Tools | External Tools for Windows and Linux, or WebStorm | Preferences | Tools | External Tools for OS X, and click + to add a new tool.
If you add hotkey for it. This usage also applies to other JetBrains series(IntelliJ IDEA, PyCharm,PhpStorm, etc.). |
@WindomZ thanks for this post, I have set up This is a generic way to proceed when there's a binary available, but no inline linter. |
You can also use the method above by @WindomZ in conjunction with output filters, so that errors are hyperlinked to the file, line and column. Settings | Tools | External Tools
Output Filters...
|
There is a plugin now: https://github.com/pwielgolaski/shellcheck-plugin/ |
I've linked to this thread from https://github.com/koalaman/shellcheck/wiki/Contrib |
I really do love this tool and I'm wondering if you have a thought to make this tool available as plugin in https://www.jetbrains.com/ IDEs?
Thanks
The text was updated successfully, but these errors were encountered: