-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
77 lines (70 loc) · 2.55 KB
/
.pre-commit-config.yaml
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
74
75
76
77
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.5.0
hooks:
- id: no-commit-to-branch
name: Check this commit is not to the main/master branch
- id: check-merge-conflict
name: Check for merge conflicts before committing
- id: check-case-conflict
name: Check for case conflicts for case-sensitive filesystems
- id: check-symlinks
name: Check for broken syslinks in the repository
- id: destroyed-symlinks
name: Check for destroyed symlinks in the repository
- id: check-added-large-files
name: Check no large files have been added to the commit
- id: check-json
name: Check JSON files for correctness
- id: trailing-whitespace
name: Check all trailing whitespace is removed
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
name: Check all files end in a new-line only
- repo: https://github.com/python-jsonschema/check-jsonschema.git
rev: 0.28.1
hooks:
- name: Check the GitHub Workflows for correctness
id: check-github-workflows
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
name: Lint YAML files for correctness and formatting
args: [--config-file, .yamllint.yaml]
- repo: https://github.com/jumanjihouse/pre-commit-hooks.git
rev: 3.0.0
hooks:
- id: script-must-have-extension
name: Check non-executable shell scripts end with .sh extension
- id: script-must-not-have-extension
name: Check executable shell scripts to not have extension
- id: shellcheck
name: Check shell scripts with shellcheck
- id: shfmt
name: Check shell scripts formtting with shfmt
args: ["-i", "2", "-bn", "-ci", "-sr"]
- repo: https://github.com/golangci/golangci-lint.git
rev: v1.57.2
hooks:
- id: golangci-lint
name: Run linters across Go source files
- repo: https://github.com/dnephin/pre-commit-golang.git
rev: v0.5.1
hooks:
- id: go-build
name: Test building the Go application
- id: go-unit-tests
name: Run unit tests for the Go application
- id: go-mod-tidy
- repo: https://github.com/igorshubovych/markdownlint-cli.git
rev: v0.39.0
hooks:
- id: markdownlint
name: Check Markdown correctness and formatting
- repo: https://github.com/zricethezav/gitleaks.git
rev: v8.18.2
hooks:
- id: gitleaks
name: Check for hard-coded secrets, keys, and credentials