Commit e6ecae7 1 parent 0a8c839 commit e6ecae7 Copy full SHA for e6ecae7
File tree 2 files changed +54
-0
lines changed
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ push :
4
+ paths :
5
+ - " **.go"
6
+ - go.mod
7
+ - go.sum
8
+ pull_request :
9
+ paths :
10
+ - " **.go"
11
+ - go.mod
12
+ - go.sum
13
+
14
+ jobs :
15
+ lint :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Set up Go 1.15
20
+ uses : actions/setup-go@v2
21
+ with :
22
+ go-version : 1.15
23
+
24
+ - name : Check out code
25
+ uses : actions/checkout@v2
26
+
27
+ - name : Verify dependencies
28
+ env :
29
+ LINT_VERSION : 1.33.0
30
+ run : |
31
+ go mod verify
32
+ go mod download
33
+
34
+ curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \
35
+ tar xz --strip-components 1 --wildcards \*/golangci-lint
36
+ mkdir -p bin && mv golangci-lint bin/
37
+
38
+ - name : Run checks
39
+ run : bin/golangci-lint run --out-format=github-actions
Original file line number Diff line number Diff line change
1
+ linters :
2
+ enable :
3
+ - gofmt
4
+ - godot
5
+ - golint
6
+
7
+ linters-settings :
8
+ godot :
9
+ # comments to be checked: `declarations`, `toplevel`, or `all`
10
+ scope : declarations
11
+ # check that each sentence starts with a capital letter
12
+ capital : true
13
+
14
+ issues :
15
+ exclude-use-default : false
You can’t perform that action at this time.
0 commit comments