Skip to content

Commit df43676

Browse files
committed
chore: rename gomodguard option
1 parent 3a0bcea commit df43676

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.golangci.next.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ linters-settings:
15301530
reason: "testing if blocked version constraint works."
15311531
# Set to true to raise lint issues for packages that are loaded from a local path via replace directive.
15321532
# Default: false
1533-
local_replace_directives: false
1533+
local-replace-directives: false
15341534

15351535
gosimple:
15361536
# Sxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks

jsonschema/golangci.next.jsonschema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@
17271727
}
17281728
}
17291729
},
1730-
"local_replace_directives": {
1730+
"local-replace-directives": {
17311731
"description": "Raise lint issues if loading local path with replace directive",
17321732
"type": "boolean",
17331733
"default": true

pkg/config/linters_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ type GoModGuardSettings struct {
563563
Version string `mapstructure:"version"`
564564
Reason string `mapstructure:"reason"`
565565
} `mapstructure:"versions"`
566-
LocalReplaceDirectives bool `mapstructure:"local_replace_directives"`
566+
LocalReplaceDirectives bool `mapstructure:"local-replace-directives"`
567567
} `mapstructure:"blocked"`
568568
}
569569

0 commit comments

Comments
 (0)