diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-26 22:45:39 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 02:14:51 -0700 |
commit | c14af2a4eb80811e8fb25502b4a07ad2f33804c2 (patch) | |
tree | 02c0661b262e4014dbec808d794b19660068d2fd /.golangci.yml | |
parent | 5f6408eef2499b1ed35e215c581647d78dca1557 (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.yml | 13 |
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 |