| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: lint.00-init/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 2022/08/27 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: |
| 14 |
# Sub-Command: |
| 15 |
# |
| 16 |
# Comment: %C{ |
| 17 |
# Lint 'sh' scripts with shellcheck |
| 18 |
# }C% |
| 19 |
# |
| 20 |
############################################################################## |
| 21 |
|
| 22 |
# define linter and its options |
| 23 |
set linter shellcheck |
| 24 |
# exclude 'ShellCheck can't follow non-constant source' report |
| 25 |
set linter_opts {-e SC1090 -S warning -s sh} |
| 26 |
|
| 27 |
foreach fpath $lint_files(sh) { |
| 28 |
set_linter_opts $fpath |
| 29 |
testall_cmd $linter $fpath {} {} 0 |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
# clean up variables used in this test case |
| 34 |
reset_test_env |
| 35 |
|
| 36 |
# vim:set tabstop=3 shiftwidth=3 expandtab autoindent: |