Add support for yaml_shellcheck for GitLab
Is your feature request related to a problem? Please describe. .gitlab-ci.yaml files have a before_script, script, and after_script sections for shell code to be used in the build process. Shellcheck alone does not scan this code nor even attempts to check .yml or .yaml files for shell code.
Describe the solution you'd like Add support for yaml-shellcheck linter. Yaml-shellcheck extracts the shell code from these sections in yaml files and executes shellcode directly on the extracted code. This will give higher quality of code and better consistency of code across files and projects.
Describe alternatives you've considered Extracting all before_script, script, and after_script code to shell files so they can be scanned but this isn't always possible and separates the build code from the pipeline.
Additional context https://github.com/mschuett/yaml-shellcheck
@hype8912 this is a good suggestion :)
But as yaml-schellcheck doesn't seem to be widely adopted today, I would prefer for it to be available as a Megaliter Plugin
https://megalinter.io/latest/plugins/
Would you like to build it ? :)
I'll take a stab at it to make a plug in. I've been playing with it today. May take me a week or two to work it in
@hype8912 great, please let me know when it's ready so we can add a link in ML doc :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.
@hype8912 any news about your plugin ? :)