File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,10 @@ linters-settings:
511511 # Default: 1.15
512512 lang-version : " 1.17"
513513
514+ # Module path which contains the source code being formatted.
515+ # Default: empty string
516+ module-path : github.com/org/project
517+
514518 # Choose whether to use the extra rules.
515519 # Default: false
516520 extra-rules : true
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ var defaultLintersSettings = LintersSettings{
4949 },
5050 Gofumpt : GofumptSettings {
5151 LangVersion : "" ,
52+ ModulePath : "" ,
5253 ExtraRules : false ,
5354 },
5455 Gosec : GoSecSettings {
@@ -311,6 +312,7 @@ type GoFmtSettings struct {
311312
312313type GofumptSettings struct {
313314 LangVersion string `mapstructure:"lang-version"`
315+ ModulePath string `mapstructure:"module-path"`
314316 ExtraRules bool `mapstructure:"extra-rules"`
315317}
316318
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func NewGofumpt() *goanalysis.Linter {
3737
3838 options := format.Options {
3939 LangVersion : getLangVersion (settings ),
40+ ModulePath : settings .ModulePath ,
4041 ExtraRules : settings .ExtraRules ,
4142 }
4243
You can’t perform that action at this time.
0 commit comments