mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-01 15:46:17 -04:00
Disable fieldalignment
This commit is contained in:
parent
f7d974f2a2
commit
e9031d97bd
@ -18,15 +18,20 @@ linters-settings:
|
|||||||
disabled-checks:
|
disabled-checks:
|
||||||
gocyclo:
|
gocyclo:
|
||||||
min-complexity: 15
|
min-complexity: 15
|
||||||
|
gofmt:
|
||||||
|
simplify: true
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/OpenDiablo2/OpenDiablo2
|
local-prefixes: github.com/OpenDiablo2/OpenDiablo2
|
||||||
golint:
|
golint:
|
||||||
min-confidence: 0.8
|
min-confidence: 0.8
|
||||||
govet:
|
govet:
|
||||||
enable:
|
enable-all: true
|
||||||
- fieldalignment
|
|
||||||
check-shadowing: true
|
check-shadowing: true
|
||||||
|
disable:
|
||||||
|
# While struct sizes could be smaller if fields aligned properly, that also leads
|
||||||
|
# to possibly non-intuitive layout of struct fields (harder to read). Disable
|
||||||
|
# `fieldalignment` check here until we evaluate if it is worthwhile.
|
||||||
|
- fieldalignment
|
||||||
lll:
|
lll:
|
||||||
line-length: 140
|
line-length: 140
|
||||||
misspell:
|
misspell:
|
||||||
|
Loading…
Reference in New Issue
Block a user