11package config
22
33type Formats struct {
4- Text Text `mapstructure:"text"`
5- JSON SimpleStyle `mapstructure:"json"`
6- Tab Tab `mapstructure:"tab"`
7- HTML SimpleStyle `mapstructure:"html"`
8- Checkstyle SimpleStyle `mapstructure:"checkstyle"`
9- CodeClimate SimpleStyle `mapstructure:"code-climate"`
10- JUnitXML JUnitXML `mapstructure:"junit-xml"`
11- TeamCity SimpleStyle `mapstructure:"team-city "`
12- Sarif SimpleStyle `mapstructure:"sarif"`
4+ Text Text `mapstructure:"text"`
5+ JSON SimpleFormat `mapstructure:"json"`
6+ Tab Tab `mapstructure:"tab"`
7+ HTML SimpleFormat `mapstructure:"html"`
8+ Checkstyle SimpleFormat `mapstructure:"checkstyle"`
9+ CodeClimate SimpleFormat `mapstructure:"code-climate"`
10+ JUnitXML JUnitXML `mapstructure:"junit-xml"`
11+ TeamCity SimpleFormat `mapstructure:"teamcity "`
12+ Sarif SimpleFormat `mapstructure:"sarif"`
1313}
1414
1515func (f * Formats ) IsEmpty () bool {
16- styles := []SimpleStyle {
17- f .Text .SimpleStyle ,
16+ styles := []SimpleFormat {
17+ f .Text .SimpleFormat ,
1818 f .JSON ,
19- f .Tab .SimpleStyle ,
19+ f .Tab .SimpleFormat ,
2020 f .HTML ,
2121 f .Checkstyle ,
2222 f .CodeClimate ,
23- f .JUnitXML .SimpleStyle ,
23+ f .JUnitXML .SimpleFormat ,
2424 f .TeamCity ,
2525 f .Sarif ,
2626 }
@@ -34,24 +34,24 @@ func (f *Formats) IsEmpty() bool {
3434 return true
3535}
3636
37- type SimpleStyle struct {
37+ type SimpleFormat struct {
3838 Path string `mapstructure:"path"`
3939}
4040
4141type Text struct {
42- SimpleStyle `mapstructure:",squash"`
42+ SimpleFormat `mapstructure:",squash"`
4343 PrintLinterName bool `mapstructure:"print-linter-name"`
4444 PrintIssuedLine bool `mapstructure:"print-issued-lines"`
4545 Colors bool `mapstructure:"colors"`
4646}
4747
4848type Tab struct {
49- SimpleStyle `mapstructure:",squash"`
49+ SimpleFormat `mapstructure:",squash"`
5050 PrintLinterName bool `mapstructure:"print-linter-name"`
51- UseColors bool `mapstructure:"use- colors"`
51+ Colors bool `mapstructure:"colors"`
5252}
5353
5454type JUnitXML struct {
55- SimpleStyle `mapstructure:",squash"`
56- Extended bool `mapstructure:"extended"`
55+ SimpleFormat `mapstructure:",squash"`
56+ Extended bool `mapstructure:"extended"`
5757}
0 commit comments