Migrate to go project layout, replace logrus with slog, fix some errors
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
run:
|
||||
tests: false
|
||||
skip-dirs:
|
||||
- data
|
||||
- vendor
|
||||
modules-download-mode: readonly
|
||||
allow-parallel-runners: true
|
||||
go: '1.22'
|
||||
go: '1.25'
|
||||
output:
|
||||
sort-results: true
|
||||
linters-settings:
|
||||
@@ -14,6 +11,9 @@ linters-settings:
|
||||
# Оно не используется для повышения безопасности или каких-то таких секъюрых вещей, оно используется для выборки
|
||||
# произвольного элемента из массива, так что ИДИ НАХУЙ с этой проверкой и не еби мозги липовой безопасностью.
|
||||
- G404 # Insecure random number source (rand)
|
||||
issues.exclude-dirs:
|
||||
- data
|
||||
- vendor
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
@@ -28,19 +28,18 @@ linters:
|
||||
- bodyclose
|
||||
- containedctx
|
||||
- contextcheck
|
||||
- copyloopvar
|
||||
- decorder
|
||||
- durationcheck
|
||||
- errchkjson
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- exhaustruct
|
||||
- exportloopref
|
||||
- gci
|
||||
- ginkgolinter
|
||||
- gocheckcompilerdirectives
|
||||
- gocritic
|
||||
- godot
|
||||
- goerr113
|
||||
- err113
|
||||
- gofmt
|
||||
- goimports
|
||||
- gosec
|
||||
|
||||
Reference in New Issue
Block a user