|
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: https://github.com/golangci/golangci-lint |
| 22 | + rev: v1.55.2 |
| 23 | + hooks: |
| 24 | + - id: golangci-lint-full |
29 | 25 |
|
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] |
| 26 | + - repo: https://github.com/gitleaks/gitleaks |
| 27 | + rev: v8.18.2 |
| 28 | + hooks: |
| 29 | + - id: gitleaks |
35 | 30 |
|
36 |
| -- repo: https://github.com/gitleaks/gitleaks |
37 |
| - rev: v8.18.2 |
38 |
| - hooks: |
39 |
| - - id: gitleaks |
40 |
| - |
41 |
| -- repo: https://github.com/DavidAnson/markdownlint-cli2 |
42 |
| - rev: v0.12.1 |
43 |
| - hooks: |
44 |
| - - id: markdownlint-cli2 |
| 31 | + - repo: https://github.com/DavidAnson/markdownlint-cli2 |
| 32 | + rev: v0.12.1 |
| 33 | + hooks: |
| 34 | + - id: markdownlint-cli2 |
45 | 35 |
|
46 | 36 | ci:
|
47 |
| - skip: [golang-diff, golangci-lint] |
| 37 | + skip: [golangci-lint-full] |
0 commit comments