Skip to content

Commit a0c0f46

Browse files
committed
feat: add golangci-lint config
1 parent f424114 commit a0c0f46

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.golangci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Refer to golangci-lint's example config file for more options and information:
2+
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
3+
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
4+
5+
run:
6+
modules-download-mode: readonly
7+
8+
linters:
9+
enable:
10+
- dupl
11+
- errcheck
12+
- goconst
13+
- gocyclo
14+
- gosimple
15+
- goimports
16+
- govet
17+
- misspell
18+
- revive
19+
- staticcheck

0 commit comments

Comments
 (0)