ludeeus / action-shellcheck

GitHub action for ShellCheck.
MIT License
292 stars 69 forks source link

Ignore specific files? #58

Closed bi1yeu closed 2 years ago

bi1yeu commented 2 years ago

Describe the issue

Hi! I am trying to configure the ShellCheck Action to ignore specific files at specific paths. E.g. if I have a project structure like

└── examples
    └── bad.sh

I would like to ignore ./examples/bad.sh. It seems I can use ignore_paths to ignore everything under examples, or ignore_names to ignore any files called bad.sh, but it's not clear how to ignore files at specific paths. This is problematic if I have directories with some files to ignore, or file names to ignore, but only in certain directories:

├── examples
│   ├── bad.sh
│   └── good.sh
└── good_examples
    └── bad.sh

I'm not familiar with GitHub Actions, and though I skimmed the code, I couldn't figure out whether this was supported or not. I tried various configurations, but none seemed to work the way I wanted. This might be a feature request instead of a bug. Any help or advice is appreciated, thanks!

Links