1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00
anytype-heart/.golangci.yml
AnastasiaShemyakinskaya a022ec9f2e
Merge branch 'prod-344-notion-api' of github.com:anytypeio/go-anytype-middleware into prod-344-notion-api
Signed-off-by: AnastasiaShemyakinskaya <shem98a@mail.ru>
2022-12-12 22:25:24 +03:00

72 lines
1.3 KiB
YAML

un:
deadline: 15m
timeout: 15m
# didn't run linter on tests
tests: false
# don't check generated protobuf files
skip-dirs:
- pb/external_libs
- pkg/lib/pb
go: '1.18'
linters-settings:
lll:
line-length: 150
funlen:
lines: 100
statements: 50
errcheck:
check-blank: true
errchkjson:
report-no-exported: true
gci:
sections:
- standard
- default
- prefix(github.com/anytypeio/go-anytype-middleware)
- blank
- dot
skip-generated: false
custom-order: true
goimports:
local-prefixes: github.com/anytypeio/go-anytype-middleware
govet:
check-shadowing: true
funlen:
lines: 120
statements: 100
lll:
line-length: 120
linters:
disable-all: true
enable:
- dupl
- gci
- gocritic
- gofmt
- goimports
- gosec
- interfacebloat
- importas
- lll
- misspell
- nestif
- prealloc
- revive
- unused
- errcheck
- funlen
- gosimple
- govet
- typecheck
- unconvert
max-issues-per-linter: 0
max-same-issues: 0
severity:
default-severity: error
rules:
- severity: warning
linters:
- lll