shellcheck-action icon indicating copy to clipboard operation
shellcheck-action copied to clipboard

Allow for specific includes and excludes

Open bewuethr opened this issue 5 years ago • 3 comments
trafficstars

Add action parameters that allow to include and exclude specific files to be checked/ignored.

bewuethr avatar Apr 02 '20 05:04 bewuethr

Could this include the --external-sources argument? It would be great to have a with property in which all possible arguments supported by shellcheck could be configured:

- name: Shellcheck
  uses: bewuethr/shellcheck-action@v2
  with:
    external_sources: .env
    severity: info
    include: [CODE1, CODE2]
    exclude: [CODE4, CODE5]

asbjornu avatar May 18 '20 12:05 asbjornu

@asbjornu Definitely a good suggestion 🙂 I've spun it out into its own issue. This issue here is meant to include/exclude specific files, which is more of a function of how the action finds the files to check (with a somewhat convoluted find command, that is).

bewuethr avatar May 18 '20 19:05 bewuethr

I see. Since shellcheck has its own include/exclude arguments, I assumed that was it. I'll subscribe to #4 and follow up there, then. Thanks!

asbjornu avatar May 18 '20 21:05 asbjornu