summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index d51fec0..d35fd4e 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -6,13 +6,22 @@ linters:
disable:
- structcheck # doesn't support Go 1.18 yet
enable:
+ - gci
- gofmt
+ - gofumpt
linters-settings:
+ gci:
+ sections:
+ - standard
+ - default
+ - prefix(git.lukeshu.com/go/lowmemjson)
gofmt:
simplify: true
issues:
exclude-rules:
- - path: borrowed_example_test.go
- linters: [errcheck]
+ - path: "borrowed_.*_test\\.go"
+ linters:
+ - errcheck
+ - gofumpt
max-issues-per-linter: 0
max-same-issues: 0