|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | repos: |
4 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v4.5.0 |
6 | | - hooks: |
7 | | - - id: trailing-whitespace |
8 | | - - id: end-of-file-fixer |
9 | | - - id: check-yaml |
10 | | - args: [--allow-multiple-documents] |
11 | | - - id: check-added-large-files |
12 | | - - id: check-merge-conflict |
13 | | - - id: check-shebang-scripts-are-executable |
14 | | - - id: check-case-conflict |
15 | | - - id: check-vcs-permalinks |
16 | | - - id: mixed-line-ending |
17 | | - args: [--fix=lf] |
18 | | - - id: no-commit-to-branch |
19 | | - - id: fix-byte-order-marker |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v4.5.0 |
| 6 | + hooks: |
| 7 | + - id: trailing-whitespace |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: check-yaml |
| 10 | + args: [--allow-multiple-documents] |
| 11 | + - id: check-added-large-files |
| 12 | + - id: check-merge-conflict |
| 13 | + - id: check-shebang-scripts-are-executable |
| 14 | + - id: check-case-conflict |
| 15 | + - id: check-vcs-permalinks |
| 16 | + - id: mixed-line-ending |
| 17 | + args: [--fix=lf] |
| 18 | + - id: no-commit-to-branch |
| 19 | + - id: fix-byte-order-marker |
20 | 20 |
|
21 | | -- repo: local |
22 | | - hooks: |
23 | | - - id: golang-diff |
24 | | - name: create-go-diff |
25 | | - entry: bash -c 'git diff -p origin/main > /tmp/diff.patch' |
26 | | - language: system |
27 | | - types: [go] |
28 | | - pass_filenames: false |
| 21 | + - repo: local |
| 22 | + hooks: |
| 23 | + - id: golang-diff |
| 24 | + name: create-go-diff |
| 25 | + entry: bash -c 'git diff -p origin/main > /tmp/diff.patch' |
| 26 | + language: system |
| 27 | + types: [go] |
| 28 | + pass_filenames: false |
29 | 29 |
|
30 | | -- repo: https://github.com/golangci/golangci-lint |
31 | | - rev: v1.55.2 |
32 | | - hooks: |
33 | | - - id: golangci-lint |
34 | | - args: [--new-from-patch=/tmp/diff.patch] |
| 30 | + - repo: https://github.com/golangci/golangci-lint |
| 31 | + rev: v1.55.2 |
| 32 | + hooks: |
| 33 | + - id: golangci-lint |
| 34 | + args: [--new-from-patch=/tmp/diff.patch] |
35 | 35 |
|
36 | | -- repo: https://github.com/gitleaks/gitleaks |
37 | | - rev: v8.18.2 |
38 | | - hooks: |
39 | | - - id: gitleaks |
| 36 | + - repo: https://github.com/gitleaks/gitleaks |
| 37 | + rev: v8.18.2 |
| 38 | + hooks: |
| 39 | + - id: gitleaks |
40 | 40 |
|
41 | | -- repo: https://github.com/DavidAnson/markdownlint-cli2 |
42 | | - rev: v0.12.1 |
43 | | - hooks: |
44 | | - - id: markdownlint-cli2 |
| 41 | + - repo: https://github.com/DavidAnson/markdownlint-cli2 |
| 42 | + rev: v0.12.1 |
| 43 | + hooks: |
| 44 | + - id: markdownlint-cli2 |
45 | 45 |
|
46 | 46 | ci: |
47 | 47 | skip: [golang-diff, golangci-lint] |
0 commit comments