File tree Expand file tree Collapse file tree 5 files changed +137
-137
lines changed Expand file tree Collapse file tree 5 files changed +137
-137
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import (
77)
88
99type BaseRule struct {
10- Linters []string
11- Path string
12- PathExcept string `mapstructure:"path-except"`
13- Text string
14- Source string
10+ Linters []string `mapstructure:"linters"`
11+ Path string `mapstructure:"path"`
12+ PathExcept string `mapstructure:"path-except"`
13+ Text string `mapstructure:"text"`
14+ Source string `mapstructure:"source"`
1515
1616 // For compatibility with exclude-use-default/include.
1717 InternalReference string `mapstructure:"-"`
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ type GciSettings struct {
3737}
3838
3939type GoFmtSettings struct {
40- Simplify bool
40+ Simplify bool `mapstructure:"simplify"`
4141 RewriteRules []GoFmtRewriteRule `mapstructure:"rewrite-rules"`
4242}
4343
4444type GoFmtRewriteRule struct {
45- Pattern string
46- Replacement string
45+ Pattern string `mapstructure:"pattern"`
46+ Replacement string `mapstructure:"replacement"`
4747}
4848
4949type GoFumptSettings struct {
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import (
66)
77
88type Linters struct {
9- Enable []string
10- Disable []string
11- EnableAll bool `mapstructure:"enable-all"`
12- DisableAll bool `mapstructure:"disable-all"`
13- Fast bool
9+ Enable []string `mapstructure:"enable"`
10+ Disable []string `mapstructure:"disable"`
11+ EnableAll bool `mapstructure:"enable-all"`
12+ DisableAll bool `mapstructure:"disable-all"`
13+ Fast bool `mapstructure:"fast"`
1414
15- Presets []string
15+ Presets []string `mapstructure:"presets"`
1616
1717 LinterExclusions LinterExclusions `mapstructure:"exclusions"`
1818}
You can’t perform that action at this time.
0 commit comments