summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 22:45:39 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:14:51 -0700
commitc14af2a4eb80811e8fb25502b4a07ad2f33804c2 (patch)
tree02c0661b262e4014dbec808d794b19660068d2fd /.golangci.yml
parent5f6408eef2499b1ed35e215c581647d78dca1557 (diff)
.golangci.yml: Turn on formatting linters 'gci' and 'gofumpt', fix
All formatting changes are made by ./tools/bin/golangci-lint run --fix ./...
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