-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (39 loc) · 1007 Bytes
/
golangci-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
name: golangci-lint
on:
pull_request:
push:
branches:
- master
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'
- name: Add configuration file
run: |
cat <<EOF > .golangci.yml
run:
timeout: 5m
issues-exit-code: 0
output:
uniq-by-line: false
linters-settings:
gosimple:
checks:
- all
- '-S1023'
issues:
exclude-rules:
- path: .+_test.go
text: "package sigs.k8s.io/controller-runtime/pkg/client/fake is deprecated: please use pkg/envtest"
- path: .+(_test|mock_client).*.go
text: "is not checked"
EOF
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54