-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (39 loc) · 1.05 KB
/
lint.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
34
35
36
37
38
39
40
41
42
43
44
45
name: Run Linter
on:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.adoc'
- '.github/**'
permissions:
contents: read
jobs:
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Display build environment
run: printenv
- uses: actions/setup-go@v4
name: Set up Go 1.x
with:
go-version: "1.21.9"
env:
GO111MODULE: off
- uses: actions/checkout@v3
name: Checkout ENO
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: >
--enable=errcheck,gocritic,gofmt,goimports,gosec,gosimple,govet,ineffassign,revive,staticcheck,typecheck,unused,bodyclose
--fix=false
--max-same-issues=20
--out-${NO_FUTURE}format=colored-line-number
--print-issued-lines=true
--print-linter-name=true
--sort-results=true
--timeout=5m0s
--uniq-by-line=false
only-new-issues: false