Run ShellCheck on shell scripts inside YAML #1347
Answered
by
felipecrs
Realiserad
asked this question in
Q&A
-
Hello, I write a lot of Tekton YAML and that means small shell scripts inside YAML. For example, I dummy like me would write something like: - name: some-tekton-step
image: gg.io/masterblaster
script: |
#!/bin/sh
source foo.sh # Oops, SC3046
if [[ -f ".jx/setup.sh" ]]; then # whoha, SC3010
echo "Doing shell magic"
fi What I typically do now, is to copy paste the shell part into a new document to ensure there are no warnings, is there a better way? |
Beta Was this translation helpful? Give feedback.
Answered by
felipecrs
Jan 12, 2024
Replies: 1 comment 3 replies
-
That's what I do too. But I believe the solution should come first from the YAML extension: redhat-developer/vscode-yaml#943 Feel free to up vote it. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Realiserad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's what I do too. But I believe the solution should come first from the YAML extension: redhat-developer/vscode-yaml#943
Feel free to up vote it.