Skip to content

Commit e908d02

Browse files
committed
test: move shellcheck to pre-commit
1 parent 6dae998 commit e908d02

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,14 @@ repos:
2323
- id: mypy
2424
exclude: completions/
2525
args: [--config-file=test/setup.cfg]
26+
- repo: https://github.com/ryanrhee/shellcheck-py
27+
rev: v0.7.0.1-1
28+
hooks:
29+
- id: shellcheck
30+
args: [
31+
-S, error, # https://github.com/koalaman/shellcheck/issues/1554
32+
-f, gcc,
33+
]
34+
types: [text]
35+
files: ^(bash_completion|completions/.+|test/run*|.+\.sh(\.in)?)$
36+
exclude: completions/Makefile.*$

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ script:
2323
-e CI=true -e DIST=$DIST -e BSD=$BSD -e NETWORK=$NETWORK
2424
${NETWORK:+--network $NETWORK}
2525
-t bash-completion:$DIST
26-
- if test $DIST = tools; then
27-
test/run-shellcheck -f gcc
28-
bash_completion bash_completion.sh.in completions/!(Makefile*);
29-
fi
3026

3127
before_deploy:
3228
- docker start bash-completion

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ Also, please bare the following coding guidelines in mind:
169169
is intended to do, fixes issues it intends to fix, etc.
170170

171171
- In addition to running the test suite, there are a few scripts in the test/
172-
dir that catch some common issues, see and use for example runLint and
173-
run-shellcheck.
172+
dir that catch some common issues, see and use for example runLint.
174173

175174
- File bugs, enhancement, and pull requests at GitHub,
176175
https://github.com/scop/bash-completion.

0 commit comments

Comments
 (0)