forked from encoredev/encore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.reviewdog.yml
33 lines (33 loc) · 1.13 KB
/
.reviewdog.yml
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
# Encore's reviewdog configuration file.
#
# This runs in our CI pipeline when you open a PR. To run this locally
# and get the same results as our CI pipeline, run: `./check.bash`
#
# We use a makefile rather than the commands directly as this repo
# has multiple Go modules within it and most tools only look at the
# module in the current directory. Thus our make file runs the tool
# for each module, combining the results into a single standardised
# that review dog can then parse and display as a single "run" for
# each tool.
runner:
go-vet:
cmd: make -s -C .github/workflows go-vet
format: govet
go-fmt:
cmd: make -s -C .github/workflows go-fmt
format: diff
# Disable staticcheck until it supports Go 1.21: https://github.com/dominikh/go-tools/issues/1431
# staticcheck:
# cmd: make -s -C .github/workflows staticcheck
# format: rdjsonl
errcheck:
cmd: make -s -C .github/workflows errcheck
errorformat:
- "%f:%l:%c:\t%m"
ineffassign:
cmd: make -s -C .github/workflows ineffassign
errorformat:
- "%f:%l:%c: %m"
semgrep:
cmd: make -s -C .github/workflows semgrep
format: rdjson