docs: fix default value for sloglint no-global (#4547)
This commit is contained in:
parent
062d98580a
commit
9d6d793175
@ -2002,12 +2002,16 @@ 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
|
||||
# Enforce not using global loggers.
|
||||
# Values:
|
||||
# - "": disabled
|
||||
# - "all": report all global loggers
|
||||
# - "default": report only the default slog logger
|
||||
# Default: ""
|
||||
no-global: "all"
|
||||
# Enforce using methods that accept a context.
|
||||
# Default: false
|
||||
context-only: true
|
||||
|
@ -2002,12 +2002,16 @@ 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
|
||||
# Enforce not using global loggers.
|
||||
# Values:
|
||||
# - "": disabled
|
||||
# - "all": report all global loggers
|
||||
# - "default": report only the default slog logger
|
||||
# Default: ""
|
||||
no-global: "all"
|
||||
# Enforce using methods that accept a context.
|
||||
# Default: false
|
||||
context-only: true
|
||||
|
@ -2317,8 +2317,8 @@
|
||||
},
|
||||
"no-global": {
|
||||
"description": "Enforce not using global loggers.",
|
||||
"enum": ["all", "default"],
|
||||
"default": "default"
|
||||
"enum": ["", "all", "default"],
|
||||
"default": ""
|
||||
},
|
||||
"no-mixed-args": {
|
||||
"description": "Enforce not mixing key-value pairs and attributes.",
|
||||
|
@ -2317,8 +2317,8 @@
|
||||
},
|
||||
"no-global": {
|
||||
"description": "Enforce not using global loggers.",
|
||||
"enum": ["all", "default"],
|
||||
"default": "default"
|
||||
"enum": ["", "all", "default"],
|
||||
"default": ""
|
||||
},
|
||||
"no-mixed-args": {
|
||||
"description": "Enforce not mixing key-value pairs and attributes.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user