-
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
Feature: ignore a list of files without modifying them #2411
Comments
I would like this functionality as well - especially for integration with editors/IDEs (Visual Studio Code/VSCode is my current preference). It automatically runs shellcheck on all my shell files - which is usually what I want - but I have, in my current project, a couple of specific .sh files which I intentionally want to be "bad formatted/poor quality". Yes, I could add (currently shellcheck 0.8.0) |
Would love to see this |
me too |
Ditto. Would increase adoption (easing configuration of CI in the tool/external to the collateral) in older repositories. |
me too |
Greetings! In case of Visual Studio Code ("VSCode"; as of version From the extension documentation (as of version
Just in case, the above JSON excerpt may be also stated in VSCode User and Workspace Settings. Please keep it safe and stay sublime! Best and kind regards ✨ Related- "Shellcheck VSCode extension": '.../src/utils/filematcher.ts'#L2; |
Hello Just to mention such feature would be nice i.e. being able to start shellcheck in the console (not from within VSCode) with the possibility to exclude folders like with Here and there I see workarounds like using |
I have a slightly different use case: |
Hi, I have a I have githooks using shellcheck. When I encrypt my Anyone has an idea why this issue is not addressed? I cannot find any good reason not to add a I'm willing to contribute if someone have the time to give me direction. |
My apologies, I am not personally into Haskell currently enough to contribute in fairly near future.
Otherwise, if not Git but a more built-in exclusion, I would expect a similar to
And, the "pattern" would either be the standard glob, more complex BRE/ERE, or even the marvelous PCRE but we should also consider the speed of such operations in the context of syntax validation and highlighting. Just in case, a few TypeScript references regarding the speed aspect:
Related: microsoft/TypeScript#51387 (Convert the codebase to modules...) |
For bugs
shellcheck --version
or "online"): 0.8.0For new checks and feature suggestions
https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this
I searched through https://github.com/koalaman/shellcheck/issues and didn't find anything related
New directive to ignore file · Issue #1996 · koalaman/shellcheck, can be used to ignore files by modifying them i.e. by adding
# shellcheck disable=all
. But, I want to ignore certain files without modifying them.Motivation: I don't want to touch files created by others.
How can I ignore a list of files? Is it posible to include that list in
.shellcheckrc
?The text was updated successfully, but these errors were encountered: