File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,10 @@ linters-settings:
511
511
# Default: 1.15
512
512
lang-version : " 1.17"
513
513
514
+ # Module path which contains the source code being formatted.
515
+ # Default: empty string
516
+ module-path : github.com/org/project
517
+
514
518
# Choose whether to use the extra rules.
515
519
# Default: false
516
520
extra-rules : true
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ var defaultLintersSettings = LintersSettings{
49
49
},
50
50
Gofumpt : GofumptSettings {
51
51
LangVersion : "" ,
52
+ ModulePath : "" ,
52
53
ExtraRules : false ,
53
54
},
54
55
Gosec : GoSecSettings {
@@ -311,6 +312,7 @@ type GoFmtSettings struct {
311
312
312
313
type GofumptSettings struct {
313
314
LangVersion string `mapstructure:"lang-version"`
315
+ ModulePath string `mapstructure:"module-path"`
314
316
ExtraRules bool `mapstructure:"extra-rules"`
315
317
}
316
318
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func NewGofumpt() *goanalysis.Linter {
37
37
38
38
options := format.Options {
39
39
LangVersion : getLangVersion (settings ),
40
+ ModulePath : settings .ModulePath ,
40
41
ExtraRules : settings .ExtraRules ,
41
42
}
42
43
You can’t perform that action at this time.
0 commit comments