Skip to content

Commit 460c2eb

Browse files
1aceMarge Bot
authored and
Marge Bot
committedOct 24, 2024
ci: move shellcheck options to .shellcheckrc
That way, IDEs get to have the same behaviour as the CI Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31826>
1 parent e2eba3c commit 460c2eb

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
 

‎.gitlab-ci/run-shellcheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ anyfailed=0
1313

1414
while IFS= read -r -d $'' file; do
1515
if is_bash "$file" ; then
16-
if ! shellcheck -x -W0 -s bash "$file"; then
16+
if ! shellcheck "$file"; then
1717
anyfailed=1
1818
fi
1919
fi

‎.gitlab-ci/test/gitlab-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ yaml-toml-shell-test:
6565
changes: &toml_lint_files
6666
- .gitlab-ci/test/gitlab-ci.yml
6767
- .gitlab-ci/**/*.sh
68+
- .shellcheckrc
6869
- bin/toml_lint.py
6970
- src/**/ci/*.toml
7071
when: on_success

‎.shellcheckrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Allow using `source` to execute the contents of other files than the one
2+
# being checked.
3+
external-sources=true
4+
5+
# Do not print links to wiki pages explaining why this is an issue.
6+
wiki-link-count=0
7+
8+
# All shell scripts are being run using bash, even if they are lacking
9+
# a shebang.
10+
shell=bash

0 commit comments

Comments
 (0)
Please sign in to comment.