|
1 | | -- id: go-test |
2 | | - name: 'Go tests' |
3 | | - entry: run-go-test.sh |
4 | | - types: [go] |
5 | | - language: 'script' |
6 | | - pass_filenames: false |
7 | | - minimum_pre_commit_version: 0.15.0 |
8 | | - description: "Runs `go test ./...` at the repo root" |
9 | | - |
10 | | -- id: goimports |
11 | | - name: 'Check Go imports' |
12 | | - entry: run-go-imports.sh |
13 | | - types: [go] |
14 | | - language: 'script' |
15 | | - pass_filenames: true |
16 | | - minimum_pre_commit_version: 0.15.0 |
17 | | - description: "Runs `goimports` on changed files" |
18 | | - require_serial: true |
19 | | - exclude: 'vendor/' |
20 | | - |
21 | | -- id: go-dep-check |
22 | | - name: 'dep-check' |
23 | | - entry: run-dep-check.sh |
24 | | - types: [go] |
25 | | - language: 'script' |
26 | | - pass_filenames: false |
27 | | - minimum_pre_commit_version: 0.15.0 |
28 | | - description: "Runs `dep check`, ensuring all imports are vendored" |
29 | | - |
30 | 1 | - id: todo-tagged-jira |
31 | 2 | name: 'TODOs have JIRA tags' |
32 | 3 | entry: todo-jira-check.py |
|
47 | 18 | description: 'Prints any TODOs tagged with the ticket reference in the current branch name' |
48 | 19 |
|
49 | 20 | - id: branch-name-check |
50 | | - name: 'Checks branch name obeys the standardised format' |
| 21 | + name: 'Branch name obeys the standardised format' |
51 | 22 | entry: run-branch-name-check.sh |
52 | 23 | always_run: true |
53 | 24 | pass_filenames: false |
54 | 25 | language: 'script' |
55 | 26 | minimum_pre_commit_version: 0.15.0 |
56 | 27 | description: 'Checks branch names obeys the following regex' |
57 | 28 |
|
| 29 | +- id: go-test |
| 30 | + name: 'Go tests' |
| 31 | + entry: run-go-test.sh |
| 32 | + types: [go] |
| 33 | + language: 'script' |
| 34 | + pass_filenames: false |
| 35 | + minimum_pre_commit_version: 0.15.0 |
| 36 | + description: "Runs `go test ./...` at the repo root" |
| 37 | + |
| 38 | +- id: go-goimports |
| 39 | + name: 'Check Go imports' |
| 40 | + entry: run-go-imports.sh |
| 41 | + types: [go] |
| 42 | + language: 'script' |
| 43 | + pass_filenames: true |
| 44 | + minimum_pre_commit_version: 0.15.0 |
| 45 | + description: "Runs `goimports` on changed files" |
| 46 | + require_serial: true |
| 47 | + exclude: 'vendor/' |
| 48 | + |
| 49 | +- id: go-dep-check |
| 50 | + name: 'Dependencies are vendored (dep)' |
| 51 | + entry: run-dep-check.sh |
| 52 | + types: [go] |
| 53 | + language: 'script' |
| 54 | + pass_filenames: false |
| 55 | + minimum_pre_commit_version: 0.15.0 |
| 56 | + description: "Runs `dep check`, ensuring all imports are vendored" |
| 57 | + |
58 | 58 | # A copy of |
59 | 59 | # https://github.com/golangci/golangci-lint/commit/09677d574ea6cd05141022aa90b88b6598bfa1a1 |
60 | 60 | # without --fix forced on users. |
61 | | -- id: golangci-lint |
62 | | - name: golangci-lint |
| 61 | +- id: go-golangci-lint |
| 62 | + name: 'Run golangci-lint' |
63 | 63 | description: Static analysis for Go code |
64 | 64 | entry: golangci-lint run |
65 | 65 | types: [go] |
|
75 | 75 | minimum_pre_commit_version: 0.15.0 |
76 | 76 | description: 'Run clippy lints against rust code' |
77 | 77 |
|
| 78 | +- id: rust-test |
| 79 | + name: 'Cargo tests' |
| 80 | + entry: run-rust-tests.sh |
| 81 | + language: 'script' |
| 82 | + files: \.rs$ |
| 83 | + pass_filenames: false |
| 84 | + minimum_pre_commit_version: 0.15.0 |
| 85 | + description: 'Run cargo test in the repo root' |
| 86 | + |
78 | 87 | - id: r-stylr |
79 | 88 | name: 'Format with stylr' |
80 | 89 | entry: run-r-stylr.R |
|
0 commit comments