Skip to content

Commit

Permalink
build(deps): bump go-simpler.org/sloglint from 0.4.0 to 0.5.0 (#4523)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <[email protected]>
dependabot[bot] and ldez authored Mar 17, 2024
1 parent 8f3027c commit 2c0a8ee
Showing 6 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
@@ -1982,6 +1982,9 @@ linters-settings:
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
# Default: false
kv-only: true
# Enforce not using global loggers.
# Default: default
no-global: all
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
# Default: false
attr-only: true
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ require (
github.com/ykadowak/zerologlint v0.1.5
gitlab.com/bosi/decorder v0.4.1
go-simpler.org/musttag v0.9.0
go-simpler.org/sloglint v0.4.0
go-simpler.org/sloglint v0.5.0
go.uber.org/automaxprocs v1.5.3
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc
golang.org/x/tools v0.19.0
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
@@ -2284,6 +2284,11 @@
"type": "boolean",
"default": false
},
"no-global": {
"description": "Enforce not using global loggers.",
"enum": ["all", "default"],
"default": "default"
},
"no-mixed-args": {
"description": "Enforce not mixing key-value pairs and attributes.",
"type": "boolean",
1 change: 1 addition & 0 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
@@ -793,6 +793,7 @@ type RowsErrCheckSettings struct {
type SlogLintSettings struct {
NoMixedArgs bool `mapstructure:"no-mixed-args"`
KVOnly bool `mapstructure:"kv-only"`
NoGlobal string `mapstructure:"no-global"`
AttrOnly bool `mapstructure:"attr-only"`
ContextOnly bool `mapstructure:"context-only"`
StaticMsg bool `mapstructure:"static-msg"`
1 change: 1 addition & 0 deletions pkg/golinters/sloglint.go
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ func NewSlogLint(settings *config.SlogLintSettings) *goanalysis.Linter {
opts = &sloglint.Options{
NoMixedArgs: settings.NoMixedArgs,
KVOnly: settings.KVOnly,
NoGlobal: settings.NoGlobal,
AttrOnly: settings.AttrOnly,
ContextOnly: settings.ContextOnly,
StaticMsg: settings.StaticMsg,

0 comments on commit 2c0a8ee

Please sign in to comment.