Debian Codegraph @

.github/workflows/lint.yaml

raw
1 name: Run lint
2
3 on: [ push, pull_request ]
4
5 jobs:
6 lint:
7 runs-on: ubuntu-latest
8 steps:
9 - name: Checkout code
10 uses: actions/checkout@v2
11 - name: Lint
12 uses: golangci/golangci-lint-action@v2
13 with:
14 # version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
15 version: latest
16
17 # Optional: show only new issues if it's a pull request. The default value is `false`.
18 # only-new-issues: true
19
20 # golangci-lint command line arguments.
21 args:
22 -v
23 --max-same-issues 10
24 --disable-all
25 --exclude-use-default=false
26 -E asciicheck
27 -E deadcode
28 -E errcheck
29 -E forcetypeassert
30 -E gocritic
31 -E gofmt
32 -E goimports
33 -E gosimple
34 -E govet
35 -E ineffassign
36 -E misspell
37 -E revive
38 -E staticcheck
39 -E structcheck
40 -E typecheck
41 -E unused
42 -E varcheck