mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-13 06:48:43 -04:00
feat: add sort-order option (#4467)
This commit is contained in:
parent
c0f89fbbe4
commit
0683d45142
7 changed files with 402 additions and 40 deletions
pkg/commands
|
@ -71,6 +71,8 @@ func setupOutputFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
|
|||
color.GreenString("Make issues output unique by line"))
|
||||
internal.AddFlagAndBind(v, fs, fs.Bool, "sort-results", "output.sort-results", false,
|
||||
color.GreenString("Sort linter results"))
|
||||
internal.AddFlagAndBind(v, fs, fs.StringSlice, "sort-order", "output.sort-order", nil,
|
||||
color.GreenString("Sort order of linter results"))
|
||||
internal.AddFlagAndBind(v, fs, fs.String, "path-prefix", "output.path-prefix", "",
|
||||
color.GreenString("Path prefix to add to output"))
|
||||
internal.AddFlagAndBind(v, fs, fs.Bool, "show-stats", "output.show-stats", false, color.GreenString("Show statistics per linter"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue