Skip to content

Commit 9ca3e34

Browse files
committed
add golang lint
1 parent ffd35d7 commit 9ca3e34

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313

14-
- name: Set up Go 1.13
14+
- name: Set up Go 1.16
1515
uses: actions/setup-go@v1
1616
with:
17-
go-version: 1.13
17+
go-version: 1.16
1818
id: go
1919

2020
- name: Check out code into the Go module directory

.golangci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
output:
2+
format: colored-line-number
3+
print-issued-lines: true
4+
print-linter-name: true
5+
uniq-by-line: true
6+
path-prefix: ""
7+
sort-results: false
8+
9+
linters:
10+
disable-all: true
11+
fast: false
12+
enable:
13+
- unused
14+
- typecheck

0 commit comments

Comments
 (0)