docs: fix default value for sloglint no-global (#4547)

This commit is contained in:
Tom 2024-03-20 16:26:09 +05:00 committed by GitHub
parent 062d98580a
commit 9d6d793175
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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.",

View File

@ -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.",