Skip to content

Commit e4afea6

Browse files
committed
chore: rename predeclared option
1 parent df43676 commit e4afea6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.golangci.next.reference.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ linters-settings:
23852385
ignore: "new,int"
23862386
# Include method names and field names (i.e., qualified names) in checks.
23872387
# Default: false
2388-
q: true
2388+
qualified-name: true
23892389

23902390
promlinter:
23912391
# Promlinter cannot infer all metrics name in static analysis.

jsonschema/golangci.next.jsonschema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@
24592459
"description": "Comma-separated list of predeclared identifiers to not report on.",
24602460
"type": "string"
24612461
},
2462-
"q": {
2462+
"qualified-name": {
24632463
"description": "Include method names and field names (i.e., qualified names) in checks.",
24642464
"type": "boolean",
24652465
"default": false

pkg/config/linters_settings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ type PreallocSettings struct {
757757

758758
type PredeclaredSettings struct {
759759
Ignore string `mapstructure:"ignore"`
760-
Qualified bool `mapstructure:"q"`
760+
Qualified bool `mapstructure:"qualified-name"`
761761
}
762762

763763
type PromlinterSettings struct {

pkg/golinters/predeclared/testdata/predeclared_custom.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ version: "2"
33
linters-settings:
44
predeclared:
55
ignore: "real,recover"
6-
q: true
6+
qualified-name: true

0 commit comments

Comments
 (0)