koalaman / shellcheck

ShellCheck, a static analysis tool for shell scripts
https://www.shellcheck.net
GNU General Public License v3.0
36.45k stars 1.78k forks source link

Ignore directories #2905

Closed joatmor closed 10 months ago

joatmor commented 10 months ago

For bugs

For new checks and feature suggestions

Here's a snippet or screenshot that shows the problem:


#!/your/interpreter
your script here

Here's what shellcheck currently says:

.git: .git: openBinaryFile: inappropriate type (is a directory)

Here's what I wanted or expected to see:

Shellcheck should simply ignore my git directory

brother commented 10 months ago

Documentation states that you should supply files on the command lines, not directories. That should have been enough.