shellcheck
shellcheck copied to clipboard
How to ignore multiple folders?
- [x] I searched through https://github.com/koalaman/shellcheck/issues and didn't find anything related
First thanks for the tool!
Current if I run shellcheck **/*.sh, it will check all files in current folder.
I know I can use --source-path= to let it check certain folders.
I am wondering is there something like .gitignore to let us ignore some folders?
Currently my workaround way is using
shellcheck $(git ls-files '*.sh')
Also, I found some issues mentioned .shellcheckrc file, but I didn't find any document about this file in the README.md, do we have some document about this file?
Thanks!
Also, I found some issues mentioned .shellcheckrc file, but I didn't find any document about this file in the README.md, do we have some document about this file?
That thing could probably do with a page in the wiki indeed. It's mentioned in the ignore page.
Sorry to drag this issue back up, but has there been any discussion on adding the ability to exclude certain path/file patterns? I've spent some time digging through issues here and this seemed the most relevant.
I have a particular repository containing many submodules and shellcheck often OOMs while running (on a 32GiB machine). For complex repositories, an exclude list functionality similar to .gitignore would be incredibly useful.