Add more lint

This commit is contained in:
世界 2022-06-29 12:26:13 +08:00
parent beeeba3388
commit 849d16c37b
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
13 changed files with 118 additions and 64 deletions

View file

@ -2,5 +2,43 @@ run:
timeout: 5m
linters:
enable-all: true
disable:
- errcheck
- errcheck
- wrapcheck
- varnamelen
- stylecheck
- nonamedreturns
- nlreturn
- ireturn
- gomnd
- exhaustivestruct
- ifshort
- goerr113
- gochecknoglobals
- forcetypeassert
- exhaustruct
- exhaustive
- cyclop
- containedctx
- wsl
- nestif
- lll
- funlen
- goconst
- godot
- gocognit
- golint
- goimports
linters-settings:
revive:
rules:
- name: var-naming
disabled: true
govet:
enable-all: true
disable:
- composites
- fieldalignment
- shadow