Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions .golangci.next.reference.yml
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions .golangci.reference.yml
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions jsonschema/golangci.jsonschema.json
Expand Up @@ -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.",
Expand Down
4 changes: 2 additions & 2 deletions jsonschema/golangci.next.jsonschema.json
Expand Up @@ -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.",
Expand Down