-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (72 loc) · 2.03 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (72 loc) · 2.03 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 2025 Nutanix. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: local
hooks:
- id: go-list-modules # This is required for blackduck scanning
name: go list modules apptests
entry: sh -c 'cd apptests && go list -m -json all'
language: system
stages: [pre-commit]
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
stages: [pre-commit]
- id: golangci-lint-mod
args:
- "--fix"
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: check-yaml
args: ["-m", "--unsafe"]
stages: [pre-commit]
- id: mixed-line-ending
args: ["-f", "lf"]
exclude: \.bat$
stages: [pre-commit]
- id: no-commit-to-branch
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- id: check-symlinks
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint-system
stages: [pre-commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
stages: [pre-commit]
args: ["-s", "-i", "2"]
- id: git-check
- id: git-dirty
- id: script-must-have-extension
stages: [pre-commit]
exclude: ^\.envrc$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [pre-commit]
exclude: ^\.envrc$