Skip to content

Commit 4239a3e

Browse files
authored
Move shellcheck to pre-commit hook (#564)
1 parent 47550ef commit 4239a3e

File tree

3 files changed

+7
-29
lines changed

3 files changed

+7
-29
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,17 @@ concurrency:
1818
jobs:
1919
cpp-lint:
2020
uses: ./.github/workflows/cpp-lint.yml
21-
shell-lint:
22-
uses: ./.github/workflows/shell-lint.yml
2321
ubuntu:
2422
needs:
2523
- cpp-lint
26-
- shell-lint
2724
uses: ./.github/workflows/ubuntu.yml
2825
mac:
2926
needs:
3027
- cpp-lint
31-
- shell-lint
3228
uses: ./.github/workflows/mac.yml
3329
windows:
3430
needs:
3531
- cpp-lint
36-
- shell-lint
3732
uses: ./.github/workflows/windows.yml
3833
perf:
3934
needs:

.github/workflows/shell-lint.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ repos:
4040
hooks:
4141
- id: yamllint
4242

43+
# Shell script linting with shellcheck
44+
- repo: https://github.com/koalaman/shellcheck-precommit
45+
rev: v0.10.0
46+
hooks:
47+
- id: shellcheck
48+
files: \.sh$
49+
4350
# Configuration
4451
default_stages: [pre-commit]
4552
fail_fast: false

0 commit comments

Comments
 (0)