Skip to content

Commit 2c0a8ee

Browse files
build(deps): bump go-simpler.org/sloglint from 0.4.0 to 0.5.0 (#4523)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 8f3027c commit 2c0a8ee

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.golangci.next.reference.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,9 @@ linters-settings:
19821982
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
19831983
# Default: false
19841984
kv-only: true
1985+
# Enforce not using global loggers.
1986+
# Default: default
1987+
no-global: all
19851988
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
19861989
# Default: false
19871990
attr-only: true

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ require (
117117
github.com/ykadowak/zerologlint v0.1.5
118118
gitlab.com/bosi/decorder v0.4.1
119119
go-simpler.org/musttag v0.9.0
120-
go-simpler.org/sloglint v0.4.0
120+
go-simpler.org/sloglint v0.5.0
121121
go.uber.org/automaxprocs v1.5.3
122122
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc
123123
golang.org/x/tools v0.19.0

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

+5
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,11 @@
22842284
"type": "boolean",
22852285
"default": false
22862286
},
2287+
"no-global": {
2288+
"description": "Enforce not using global loggers.",
2289+
"enum": ["all", "default"],
2290+
"default": "default"
2291+
},
22872292
"no-mixed-args": {
22882293
"description": "Enforce not mixing key-value pairs and attributes.",
22892294
"type": "boolean",

pkg/config/linters_settings.go

+1
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ type RowsErrCheckSettings struct {
793793
type SlogLintSettings struct {
794794
NoMixedArgs bool `mapstructure:"no-mixed-args"`
795795
KVOnly bool `mapstructure:"kv-only"`
796+
NoGlobal string `mapstructure:"no-global"`
796797
AttrOnly bool `mapstructure:"attr-only"`
797798
ContextOnly bool `mapstructure:"context-only"`
798799
StaticMsg bool `mapstructure:"static-msg"`

pkg/golinters/sloglint.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ func NewSlogLint(settings *config.SlogLintSettings) *goanalysis.Linter {
1414
opts = &sloglint.Options{
1515
NoMixedArgs: settings.NoMixedArgs,
1616
KVOnly: settings.KVOnly,
17+
NoGlobal: settings.NoGlobal,
1718
AttrOnly: settings.AttrOnly,
1819
ContextOnly: settings.ContextOnly,
1920
StaticMsg: settings.StaticMsg,

0 commit comments

Comments
 (0)