Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Shellcheck suppressions via actionlint.yaml config file #156

Closed
ViacheslavKudinov opened this issue Jun 23, 2022 · 6 comments
Closed

Comments

@ViacheslavKudinov
Copy link

Hello,
there is no documentation how to set suppression for built-in shellcheck functionality.
I can use env variables, but then it will change usual shellcheck tests as well, and that is not what i need.

It will be great to get examples how to configure it in actionlint.yaml or, maybe, disable shellcheck as a workaround.

@ViacheslavKudinov ViacheslavKudinov changed the title Shellcheck suppressing via actionlint config file Shellcheck suppression via actionlint config file Jun 23, 2022
@ViacheslavKudinov ViacheslavKudinov changed the title Shellcheck suppression via actionlint config file Docs: Shellcheck suppression via actionlint config file Jun 23, 2022
@ViacheslavKudinov ViacheslavKudinov changed the title Docs: Shellcheck suppression via actionlint config file Docs: Shellcheck suppressions via actionlint.yaml config file Jun 23, 2022
@mohamed-haidara-cko
Copy link

If you only want to ignore some checks, you can use the -ignore flag. Example: -ignore "SC2086".

Adding this to the config file would be nice also

@ViacheslavKudinov
Copy link
Author

Hi @mohamed-haidara-cko
Thank you for the suggestion, but I use actionlint as part of superlinter GitHub action, not as CLI tool.
It is basically why I'm exactly interested to get it in actionlint.yaml file instead of any env vars or CLI options/parameters.

@mohamed-haidara-cko
Copy link

Ah ok, got it :-)

@seemethere
Copy link

Also interested in this as well, it's annoying to have to pass these on the command line directly

@rhysd
Copy link
Owner

rhysd commented Aug 13, 2022

To disable shellcheck integration, please pass empty string to -shellcheck option.

actionlint -shellcheck=

Adding some config would be useful for some situation, but I'm trying to keep configuration file as minimal as possible.

@rhysd rhysd closed this as completed Aug 13, 2022
rhysd added a commit that referenced this issue Aug 13, 2022
@maxisam
Copy link

maxisam commented Nov 10, 2023

you can use ACTION_ACTIONLINT_ARGUMENTS to add -ignore in .mega-linter.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants