Skip to content

Commit 9560caf

Browse files
committed
Add lint script
1 parent 14a6ee3 commit 9560caf

File tree

4 files changed

+21
-368
lines changed

4 files changed

+21
-368
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: Download dependencies
2626
run: go mod download
2727

28+
- name: Lint code
29+
run: script/lint
30+
2831
- name: Run unit tests
2932
run: go test -race ./...
3033

.github/workflows/lint.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.golangci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ run:
44
timeout: 5m
55
tests: true
66
concurrency: 4
7+
skip-dirs:
8+
- "../../go/pkg/mod"
79

810
linters:
911
enable:
@@ -34,6 +36,17 @@ linters:
3436
disabled: true
3537
- name: package-comments
3638
disabled: true
39+
exclusions:
40+
paths:
41+
- vendor
42+
- .git
43+
- .vscode
44+
- .idea
45+
- .DS_Store
46+
- go.sum
47+
- go.mod
48+
- LICENSE
49+
- README.md
3750

3851
formatters:
3952
enable:

0 commit comments

Comments
 (0)