-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 854 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: shell-fmt
name: shfmt
description: Check all shell scripts are in canonical format.
entry: shfmt
language: system
types: [file, shell]
exclude_types: [zsh]
args: [-w,-i,"4"]
- id: shell-check
name: shellcheck
description: Shell script analysis tool
entry: shellcheck
language: system
types: [file, shell]
files: ^(bash_profile_switcher.sh|tests/profiles/snippets/.*\.sh|snippets/.*\.sh)$