Enable the sloglint linter (#34398)

Updates the golangci-lint configuration to enable sloglint and
configure it as per RFD 0154.
This commit is contained in:
rosstimothy
2023-11-09 17:17:44 +00:00
committed by GitHub
parent 30490419f7
commit ecde83c1e2
+5
View File
@@ -27,6 +27,7 @@ linters:
- misspell
- nolintlint
- revive
- sloglint
- staticcheck
- testifylint
- unconvert
@@ -72,6 +73,10 @@ linters-settings:
rules:
- name: unused-parameter
disabled: true
sloglint:
context-only: true
key-naming-case: snake
static-msg: true
testifylint:
enable:
- bool-compare