File tree 5 files changed +43
-0
lines changed
5 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : golangci-lint
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ types : [opened, reopened]
7
+
8
+ jobs :
9
+ golangci :
10
+ name : lint
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : golangci-lint
15
+ uses : golangci/golangci-lint-action@v2
16
+ with :
17
+ version : v1.34
18
+ args : -v
Original file line number Diff line number Diff line change
1
+ linters :
2
+ enable :
3
+ - goheader
4
+ - golint
5
+ disable-all : true
6
+ # all available settings of specific linters
7
+ linters-settings :
8
+ goheader :
9
+ template-path : code-header-template.txt
10
+ issues :
11
+ max-issues-per-linter : 0
12
+ max-same-issues : 0
Original file line number Diff line number Diff line change
1
+ Copyright 2020 VMware, Inc.
2
+ SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e -x -u
4
+
5
+ ./hack/build.sh
6
+ ./hack/linter.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ golangci-lint cache clean
5
+ golangci-lint run
You can’t perform that action at this time.
0 commit comments