File tree 5 files changed +137
-137
lines changed
5 files changed +137
-137
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import (
7
7
)
8
8
9
9
type 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"`
15
15
16
16
// For compatibility with exclude-use-default/include.
17
17
InternalReference string `mapstructure:"-"`
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ type GciSettings struct {
37
37
}
38
38
39
39
type GoFmtSettings struct {
40
- Simplify bool
40
+ Simplify bool `mapstructure:"simplify"`
41
41
RewriteRules []GoFmtRewriteRule `mapstructure:"rewrite-rules"`
42
42
}
43
43
44
44
type GoFmtRewriteRule struct {
45
- Pattern string
46
- Replacement string
45
+ Pattern string `mapstructure:"pattern"`
46
+ Replacement string `mapstructure:"replacement"`
47
47
}
48
48
49
49
type GoFumptSettings struct {
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import (
6
6
)
7
7
8
8
type 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"`
14
14
15
- Presets []string
15
+ Presets []string `mapstructure:"presets"`
16
16
17
17
LinterExclusions LinterExclusions `mapstructure:"exclusions"`
18
18
}
You can’t perform that action at this time.
0 commit comments