forked from ferriskey/ferriskey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (56 loc) · 1.68 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (56 loc) · 1.68 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
exclude: (^core/migrations/20250[34567].+\.sql$)|(.*\.rs$)
- id: trailing-whitespace
exclude: (^core/migrations/20250[34567].+\.sql$)|(.*\.rs$)
- repo: local
hooks:
- id: rust-fmt
name: rust-fmt
entry: cargo fmt --all
language: system
files: ^(.*)\.rs$
exclude: ^client/
pass_filenames: false
- id: rust-clippy
name: rust-clippy
entry: cargo clippy --all --exclude ferriskey-client -- -D warnings
language: system
files: ^(.*)\.rs|Cargo\.(toml|lock)$
exclude: ^client/
pass_filenames: false
- id: esint
name: eslint
entry: bash -c "cd front && npm run lint"
language: system
files: ^(.*)\.((t|j)sx?)$
pass_filenames: false
- id: hadolint
name: hadolint
entry: hadolint/hadolint hadolint
language: docker_image
files: Dockerfile
- id: shellcheck
name: shellcheck
entry: koalaman/shellcheck:stable
language: docker_image
files: ^(.*)\.sh$
exclude: ^client/
- id: helm-lint
name: helm-lint
entry: helm lint charts/ferriskey
language: system
files: ^charts/ferriskey
pass_filenames: false
- id: helm-docs
name: helm-docs
entry: ./sh/helm-docs.sh
language: system
files: ^charts/ferriskey/(values\.yaml|README\.md(\.gotmpl)?)$
pass_filenames: false