mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 15:01:07 +01:00
ac97ea573c
* Update go-redis to v8.4.0 * github.com/go-redis/redis/v8 v8.4.0 -> v8.5.0 * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * TODO * Use the Queue termination channel as the default context for pushes Signed-off-by: Andrew Thornton <art27@cantab.net> * missed one Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
32 lines
750 B
YAML
Vendored
32 lines
750 B
YAML
Vendored
# See https://github.com/golangci/golangci-lint#config-file
|
|
run:
|
|
issues-exit-code: 1 #Default
|
|
tests: true #Default
|
|
|
|
linters:
|
|
enable:
|
|
- misspell
|
|
- goimports
|
|
- golint
|
|
- gofmt
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# helpers in tests often (rightfully) pass a *testing.T as their first argument
|
|
- path: _test\.go
|
|
text: "context.Context should be the first parameter of a function"
|
|
linters:
|
|
- golint
|
|
# Yes, they are, but it's okay in a test
|
|
- path: _test\.go
|
|
text: "exported func.*returns unexported type.*which can be annoying to use"
|
|
linters:
|
|
- golint
|
|
|
|
linters-settings:
|
|
misspell:
|
|
locale: US
|
|
ignore-words:
|
|
- cancelled
|
|
goimports:
|
|
local-prefixes: go.opentelemetry.io
|