Currently, to ignore files from being checked, you can use ignore_paths and ignore_names, but these inputs can't be used in combination to exclude specific files.
As an example, say you want to exclude the file ./folder_a/maybe_ignore.sh. Using ignore_paths: folder_a would ignore other files in that directory that shouldn't be ignored. Using ignore_names: maybe_ignore.sh would ignore files that share the same name as the target file, but which exist in other directories.
This change makes the ignore_paths input a little more expressive:
allows specifying a full path to a file like ./folder_a/maybe_ignore.sh
allows specifying a glob matcher like **/maybe_ignore.sh
I also added more tests for ignore_paths. And I removed testfiles/ignore/ignore.sh, which looked unused. I can add this back if it was being used as an implicit exclusion test.
Fixes https://github.com/ludeeus/action-shellcheck/issues/58
Currently, to ignore files from being checked, you can use
ignore_paths
andignore_names
, but these inputs can't be used in combination to exclude specific files.As an example, say you want to exclude the file
./folder_a/maybe_ignore.sh
. Usingignore_paths: folder_a
would ignore other files in that directory that shouldn't be ignored. Usingignore_names: maybe_ignore.sh
would ignore files that share the same name as the target file, but which exist in other directories.This change makes the
ignore_paths
input a little more expressive:./folder_a/maybe_ignore.sh
**/maybe_ignore.sh
I also added more tests for
ignore_paths
. And I removedtestfiles/ignore/ignore.sh
, which looked unused. I can add this back if it was being used as an implicit exclusion test.