I pushed a git branch named "matt/run_all_test.sh"
Since git stores branches as directories inside of .git, the shellcheck orb's find command found this directory and tried to shellcheck its contents:
In ./.git/refs/heads/matt/run_all_test.sh line 1:
a6b1eaea75129ffa07ffd28ac30edd43f2f1c700
^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Expected behavior:
contents of .git are ignored by default, or failing that, once I've figured out what's going on, there's some workaround allowing me to continue to use this orb (AFAICT right now my only option is to delete the branch)
Additional Information:
some potential solutions that come to mind:
prune '.git' from the find (git-specific)
add a -type f to the find so that the branch directories don't show up (maybe that breaks a valid use case?)
add an orb parameter that lets users set paths to exclude from shellcheck (doesn't fix this behavior for users by default, but at least enables a workaround)
Orb version:
2.24
What happened:
I pushed a git branch named "matt/run_all_test.sh"
Since git stores branches as directories inside of
.git
, the shellcheck orb'sfind
command found this directory and tried to shellcheck its contents:Expected behavior:
contents of
.git
are ignored by default, or failing that, once I've figured out what's going on, there's some workaround allowing me to continue to use this orb (AFAICT right now my only option is to delete the branch)Additional Information:
some potential solutions that come to mind:
find
(git-specific)-type f
to thefind
so that the branch directories don't show up (maybe that breaks a valid use case?)