Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Exclude non-shell scripts from linting #22

Open
mcandre opened this issue Aug 16, 2017 · 0 comments
Open

Exclude non-shell scripts from linting #22

mcandre opened this issue Aug 16, 2017 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Aug 16, 2017

For large projects with many shell and non-shell files, it can be difficult to find the right syntax to get shlint to lint all shell scripts, that is, just the shell scripts and nothing else. One can construct a UNIX find command, such as find lib -name "*.sh" -exec shlint {} \;, though this is not a one-size-fits-all, if your shell scripts sometimes lack extensions or are housed in different directory structures. Accordingly, it would be helpful if shlint automatically ignored file paths that are not actually shell scripts.

As a workaround, I'm releasing stank, so users can stank . | xargs shlint. It's not a Ruby application, but there are binary ports for macOS, Windows, Linux, and other platforms so at least it's relatively easy to obtain, even if you're not a hardcore Go developer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant