mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 05:12:10 +08:00
feat: optimize config
This commit is contained in:
parent
79876253c9
commit
f0ee9d0035
@ -338,14 +338,36 @@ linters-settings:
|
|||||||
local-prefixes: github.com/openimsdk/open-im-server
|
local-prefixes: github.com/openimsdk/open-im-server
|
||||||
|
|
||||||
gomnd:
|
gomnd:
|
||||||
settings:
|
# List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
|
||||||
mnd:
|
# Default: ["argument", "case", "condition", "operation", "return", "assign"]
|
||||||
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
|
checks:
|
||||||
# checks:
|
- argument
|
||||||
# ignored-numbers: 1000
|
- case
|
||||||
ignored-files: magic_.*.go, test_.*.go, .*_test.go
|
- condition
|
||||||
ignored-functions: math.*
|
- operation
|
||||||
|
- return
|
||||||
|
- assign
|
||||||
|
# List of numbers to exclude from analysis.
|
||||||
|
# The numbers should be written as string.
|
||||||
|
# Values always ignored: "1", "1.0", "0" and "0.0"
|
||||||
|
# Default: []
|
||||||
|
ignored-numbers:
|
||||||
|
- '0666'
|
||||||
|
- '0755'
|
||||||
|
- '42'
|
||||||
|
# List of file patterns to exclude from analysis.
|
||||||
|
# Values always ignored: `.+_test.go`
|
||||||
|
# Default: []
|
||||||
|
ignored-files:
|
||||||
|
- 'magic1_.+\.go$'
|
||||||
|
# List of function patterns to exclude from analysis.
|
||||||
|
# Following functions are always ignored: `time.Date`,
|
||||||
|
# `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
|
||||||
|
# `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
|
||||||
|
# Default: []
|
||||||
|
ignored-functions:
|
||||||
|
- '^math\.'
|
||||||
|
- '^http\.StatusText$'
|
||||||
gomoddirectives:
|
gomoddirectives:
|
||||||
# Allow local `replace` directives. Default is false.
|
# Allow local `replace` directives. Default is false.
|
||||||
replace-local: true
|
replace-local: true
|
||||||
@ -421,9 +443,6 @@ linters-settings:
|
|||||||
checks: [ "all" ]
|
checks: [ "all" ]
|
||||||
|
|
||||||
govet:
|
govet:
|
||||||
# report about shadowed variables
|
|
||||||
check-shadowing: false
|
|
||||||
|
|
||||||
# settings per analyzer
|
# settings per analyzer
|
||||||
settings:
|
settings:
|
||||||
printf: # analyzer name, run `go tool vet help` to see all analyzers
|
printf: # analyzer name, run `go tool vet help` to see all analyzers
|
||||||
@ -508,9 +527,6 @@ linters-settings:
|
|||||||
line-length: 250
|
line-length: 250
|
||||||
# tab width in spaces. Default to 1.
|
# tab width in spaces. Default to 1.
|
||||||
tab-width: 4
|
tab-width: 4
|
||||||
maligned:
|
|
||||||
# print struct with more effective memory layout or not, false by default
|
|
||||||
suggest-new: true
|
|
||||||
misspell:
|
misspell:
|
||||||
# Correct spellings using locale preferences for US or UK.
|
# Correct spellings using locale preferences for US or UK.
|
||||||
# Default is to use a neutral variety of English.
|
# Default is to use a neutral variety of English.
|
||||||
@ -751,6 +767,7 @@ linters:
|
|||||||
- reassign
|
- reassign
|
||||||
- tparallel
|
- tparallel
|
||||||
- unconvert
|
- unconvert
|
||||||
|
- fieldalignment
|
||||||
- dupl
|
- dupl
|
||||||
- dupword
|
- dupword
|
||||||
- errname
|
- errname
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user