add shell-linter config (no-ci)

This commit is contained in:
Josh Spicer 2022-06-13 20:11:10 +00:00 committed by GitHub
parent 3d29560211
commit 19fd66af96
2 changed files with 6 additions and 2 deletions

View file

@ -16,4 +16,6 @@ jobs:
uses: azohra/shell-linter@v0.6.0 uses: azohra/shell-linter@v0.6.0
with: with:
path: "src/**/*.sh" path: "src/**/*.sh"
severity: "error" # [style, info, warning, error] severity: "error" # [style, info, warning, error]
env:
SHELLCHECK_OPTS: -e SC2072 # Acceptable use of decimal comparison

View file

@ -21,4 +21,6 @@ jobs:
uses: azohra/shell-linter@v0.6.0 uses: azohra/shell-linter@v0.6.0
with: with:
path: ${{ github.event.inputs.path }} path: ${{ github.event.inputs.path }}
severity: ${{ github.event.inputs.severity }} severity: ${{ github.event.inputs.severity }}
env:
SHELLCHECK_OPTS: -e SC2072 # Acceptable use of decimal comparison