Skip to content

Commit b39613e

Browse files
committed
chore: remove missing unused configuration field
1 parent 3fa551e commit b39613e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

pkg/commands/flagsets.go

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func setupOutputFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
6464
internal.Vibra(v, fs, fs.Bool, "print-linter-name", "output.print-linter-name", true, wh("Print linter name in issue line"))
6565
internal.Vibra(v, fs, fs.Bool, "uniq-by-line", "output.uniq-by-line", true, wh("Make issues output unique by line"))
6666
internal.Vibra(v, fs, fs.Bool, "sort-results", "output.sort-results", false, wh("Sort linter results"))
67-
internal.Vibra(v, fs, fs.Bool, "print-welcome", "output.print-welcome", false, wh("Print welcome message"))
6867
internal.Vibra(v, fs, fs.String, "path-prefix", "output.path-prefix", "", wh("Path prefix to add to output"))
6968
}
7069

pkg/config/output.go

+6-7
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ var OutFormats = []string{
2828
}
2929

3030
type Output struct {
31-
Format string `mapstructure:"format"`
32-
PrintIssuedLine bool `mapstructure:"print-issued-lines"`
33-
PrintLinterName bool `mapstructure:"print-linter-name"`
34-
UniqByLine bool `mapstructure:"uniq-by-line"`
35-
SortResults bool `mapstructure:"sort-results"`
36-
PrintWelcomeMessage bool `mapstructure:"print-welcome"`
37-
PathPrefix string `mapstructure:"path-prefix"`
31+
Format string `mapstructure:"format"`
32+
PrintIssuedLine bool `mapstructure:"print-issued-lines"`
33+
PrintLinterName bool `mapstructure:"print-linter-name"`
34+
UniqByLine bool `mapstructure:"uniq-by-line"`
35+
SortResults bool `mapstructure:"sort-results"`
36+
PathPrefix string `mapstructure:"path-prefix"`
3837
}

0 commit comments

Comments
 (0)