File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 88 language : script
99 pass_filenames : true
1010 files : " ^bin/hardening/"
11+ - id : shfmt
12+ name : shfmt.sh
13+ description : Ensure correct formatting
14+ entry : hooks/shfmt.sh
15+ language : script
16+ pass_filenames : true
17+ files : " ^(bin|tests)/hardening/"
18+ - id : shellcheck
19+ name : shellcheck.sh
20+ description : Ensure correct syntax
21+ entry : hooks/shellcheck.sh
22+ language : script
23+ pass_filenames : true
24+ files : " ^(bin|tests)/hardening/"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ for script in " $@ " ; do
4+ /usr/bin/shellcheck --exclude=SC2317 --color=always --shell=bash -x --source-path=SCRIPTDIR " $script "
5+ done
6+
7+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ for script in " $@ " ; do
4+ shfmt -l -i 4 -w " $script "
5+ done
6+
7+ exit 0
You can’t perform that action at this time.
0 commit comments