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).
|
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
|
||||||
# Default: false
|
# Default: false
|
||||||
kv-only: true
|
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).
|
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
|
||||||
# Default: false
|
# Default: false
|
||||||
attr-only: true
|
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.
|
# Enforce using methods that accept a context.
|
||||||
# Default: false
|
# Default: false
|
||||||
context-only: true
|
context-only: true
|
||||||
|
@ -2002,12 +2002,16 @@ linters-settings:
|
|||||||
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
|
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
|
||||||
# Default: false
|
# Default: false
|
||||||
kv-only: true
|
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).
|
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
|
||||||
# Default: false
|
# Default: false
|
||||||
attr-only: true
|
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.
|
# Enforce using methods that accept a context.
|
||||||
# Default: false
|
# Default: false
|
||||||
context-only: true
|
context-only: true
|
||||||
|
@ -2317,8 +2317,8 @@
|
|||||||
},
|
},
|
||||||
"no-global": {
|
"no-global": {
|
||||||
"description": "Enforce not using global loggers.",
|
"description": "Enforce not using global loggers.",
|
||||||
"enum": ["all", "default"],
|
"enum": ["", "all", "default"],
|
||||||
"default": "default"
|
"default": ""
|
||||||
},
|
},
|
||||||
"no-mixed-args": {
|
"no-mixed-args": {
|
||||||
"description": "Enforce not mixing key-value pairs and attributes.",
|
"description": "Enforce not mixing key-value pairs and attributes.",
|
||||||
|
@ -2317,8 +2317,8 @@
|
|||||||
},
|
},
|
||||||
"no-global": {
|
"no-global": {
|
||||||
"description": "Enforce not using global loggers.",
|
"description": "Enforce not using global loggers.",
|
||||||
"enum": ["all", "default"],
|
"enum": ["", "all", "default"],
|
||||||
"default": "default"
|
"default": ""
|
||||||
},
|
},
|
||||||
"no-mixed-args": {
|
"no-mixed-args": {
|
||||||
"description": "Enforce not mixing key-value pairs and attributes.",
|
"description": "Enforce not mixing key-value pairs and attributes.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user