File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 10
10
paths-ignore :
11
11
- ' *.md'
12
12
- ' website/*'
13
+ permissions :
14
+ contents : read
15
+ pull-requests : read
13
16
jobs :
17
+ golangci :
18
+ name : lint
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : golangci-lint
23
+ uses : golangci/golangci-lint-action@v2
24
+ with :
25
+ version : v1.43.0
26
+ only-new-issues : true
14
27
build :
15
28
name : Build
16
29
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change
1
+ linters-settings :
2
+ lll :
3
+ line-length : 140
4
+ gosec :
5
+ # complains that we allow to bypass checking certificates/keys
6
+ excludes :
7
+ - G402
8
+ - G106
9
+
10
+ linters :
11
+ enable-all : false
12
+ enable :
13
+ - ifshort
14
+ - unparam
15
+ - exhaustive
16
+ - godot
17
+ - nilerr
18
+ - gosec
19
+ - revive
20
+ - gocritic
21
+ - misspell
22
+ - depguard
23
+ - lll
24
+ - errorlint
25
+ - errcheck
26
+ issues :
27
+ new-from-rev : HEAD~
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ install:
20
20
test :
21
21
go test -v $(TEST_ARGS_DEF ) $(TEST_ARGS ) ./libvirt
22
22
23
+ lint :
24
+ golangci-lint run
25
+ terraform fmt -write=false -check=true -diff=true examples/
26
+
23
27
# acceptance tests
24
28
# usage:
25
29
#
You can’t perform that action at this time.
0 commit comments