Skip to content

Commit fcfa776

Browse files
committed
shellcheck.yml: Add check at every pull request
Shellcheck 2.0.0 is launched on every pull request. Two warnings were ignored : SC2154 - var is referenced but not assigned SC2086 - Double quote to prevent globbing and word splitting Respect these warning will make the code much messier and hard to read. Signed-off-by: Erwann Roussy <[email protected]>
1 parent 974adba commit fcfa776

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/shellcheck.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "ShellCheck"
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
shellcheck:
9+
name: Shellcheck
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: ShellCheck
14+
uses: ludeeus/[email protected]
15+
env:
16+
SHELLCHECK_OPTS: -e SC2086 -e SC2154

0 commit comments

Comments
 (0)