You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.next.reference.yml
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -367,34 +367,42 @@ linters-settings:
367
367
#
368
368
# Variables:
369
369
# - File Variables
370
-
#you can still use and exclamation mark ! in front of a variable to say not to use it.
371
-
# Example!$test will match any file that is not a go test file.
370
+
#Use an exclamation mark `!` to negate a variable.
371
+
# Example: `!$test` matches any file that is not a go test file.
372
372
#
373
373
# `$all` - matches all go files
374
374
# `$test` - matches all go test files
375
375
#
376
376
# - Package Variables
377
377
#
378
-
# `$gostd` - matches all of go's standard library (Pulled from `GOROOT`)
378
+
#`$gostd` - matches all of go's standard library (Pulled from `GOROOT`)
379
379
#
380
-
# Default: Only allow $gostd in all files.
380
+
# Default (applies if no custom rules are defined): Only allow $gostd in all files.
381
381
rules:
382
382
# Name of a rule.
383
383
main:
384
-
# Used to determine the package matching priority.
385
-
# There are three different modes: `original`, `strict`, and `lax`.
384
+
# Defines package matching behavior. Available modes:
385
+
# - `original`: allowed if it doesn't match the deny list and either matches the allow list or the allow list is empty.
386
+
# - `strict`: allowed only if it matches the allow list and either doesn't match the deny list or the allow rule is more specific (longer) than the deny rule.
387
+
# - `lax`: allowed if it doesn't match the deny list or the allow rule is more specific (longer) than the deny rule.
386
388
# Default: "original"
387
389
list-mode: lax
388
390
# List of file globs that will match this list of settings to compare against.
389
391
# Default: $all
390
392
files:
391
393
- "!**/*_a _file.go"
392
394
# List of allowed packages.
395
+
# Entries can be a variable (starting with $), a string prefix, or an exact match (if ending with $).
396
+
# Default: []
393
397
allow:
394
398
- $gostd
395
399
- github.com/OpenPeeDeeP
396
-
# Packages that are not allowed where the value is a suggestion.
400
+
# List of packages that are not allowed.
401
+
# Entries can be a variable (starting with $), a string prefix, or an exact match (if ending with $).
Copy file name to clipboardExpand all lines: .golangci.reference.yml
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -367,34 +367,42 @@ linters-settings:
367
367
#
368
368
# Variables:
369
369
# - File Variables
370
-
#you can still use and exclamation mark ! in front of a variable to say not to use it.
371
-
# Example!$test will match any file that is not a go test file.
370
+
#Use an exclamation mark `!` to negate a variable.
371
+
# Example: `!$test` matches any file that is not a go test file.
372
372
#
373
373
# `$all` - matches all go files
374
374
# `$test` - matches all go test files
375
375
#
376
376
# - Package Variables
377
377
#
378
-
# `$gostd` - matches all of go's standard library (Pulled from `GOROOT`)
378
+
#`$gostd` - matches all of go's standard library (Pulled from `GOROOT`)
379
379
#
380
-
# Default: Only allow $gostd in all files.
380
+
# Default (applies if no custom rules are defined): Only allow $gostd in all files.
381
381
rules:
382
382
# Name of a rule.
383
383
main:
384
-
# Used to determine the package matching priority.
385
-
# There are three different modes: `original`, `strict`, and `lax`.
384
+
# Defines package matching behavior. Available modes:
385
+
# - `original`: allowed if it doesn't match the deny list and either matches the allow list or the allow list is empty.
386
+
# - `strict`: allowed only if it matches the allow list and either doesn't match the deny list or the allow rule is more specific (longer) than the deny rule.
387
+
# - `lax`: allowed if it doesn't match the deny list or the allow rule is more specific (longer) than the deny rule.
386
388
# Default: "original"
387
389
list-mode: lax
388
390
# List of file globs that will match this list of settings to compare against.
389
391
# Default: $all
390
392
files:
391
393
- "!**/*_a _file.go"
392
394
# List of allowed packages.
395
+
# Entries can be a variable (starting with $), a string prefix, or an exact match (if ending with $).
396
+
# Default: []
393
397
allow:
394
398
- $gostd
395
399
- github.com/OpenPeeDeeP
396
-
# Packages that are not allowed where the value is a suggestion.
400
+
# List of packages that are not allowed.
401
+
# Entries can be a variable (starting with $), a string prefix, or an exact match (if ending with $).
0 commit comments