File tree 4 files changed +103
-0
lines changed
4 files changed +103
-0
lines changed Original file line number Diff line number Diff line change
1
+ linters-settings :
2
+ dupl :
3
+ threshold : 100
4
+ goconst :
5
+ min-len : 2
6
+ min-occurrences : 2
7
+ goimports :
8
+ local-prefixes : github.com/golangci/golangci-lint
9
+ golint :
10
+ min-confidence : 0.3
11
+ govet :
12
+ check-shadowing : true
13
+ lll :
14
+ line-length : 120
15
+ misspell :
16
+ locale : US
17
+ ignore-words : []
18
+
19
+ linters :
20
+ disable-all : true
21
+ enable :
22
+ - bodyclose
23
+ - deadcode
24
+ - dupl
25
+ - errcheck
26
+ - goconst
27
+ - gofmt
28
+ - goimports
29
+ - golint
30
+ - govet
31
+ - ineffassign
32
+ - misspell
33
+ - scopelint
34
+ - structcheck
35
+ - unconvert
36
+ - unused
37
+ - varcheck
38
+ - whitespace
39
+
40
+ issues :
41
+ exclude-rules :
42
+ - path : _test\.go
43
+ linters :
44
+ - gomnd
45
+ - dupl
46
+
47
+ service :
48
+ golangci-lint-version : 1.23.x
49
+ prepare :
50
+ - echo "here I can run custom commands, but no preparation needed for this repository"
Original file line number Diff line number Diff line change
1
+ <!-- This is a template. Please rewrite to the necessary contents when creating the PR. -->
2
+ <!-- If there is an issue, enter it. -->
3
+ Closes #XXX
4
+
5
+ <!-- ## Overview -->
6
+ <!-- Please write the purpose of this PR and the outline of implementation. -->
Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ GO111MODULE : on
14
+
15
+ steps :
16
+ - name : Set up Go 1.12
17
+ uses : actions/setup-go@v1
18
+ with :
19
+ go-version : 1.12
20
+ id : go
21
+
22
+ - uses : actions/checkout@v2
23
+
24
+ - name : Run tests
25
+ run : |
26
+ make test
Original file line number Diff line number Diff line change
1
+ name : linter
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ golangci-lint :
11
+ name : runner / golangci-lint
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Check out code into the Go module directory
15
+ uses : actions/checkout@v2
16
+
17
+ - name : golangci-lint
18
+ uses : golangci/golangci-lint-action@v2
19
+ with :
20
+ args : " --config=.github/.golangci.yml"
21
+ skip-go-installation : true
You can’t perform that action at this time.
0 commit comments