Output for custom linter contains "gibberish"
soupdiver opened this issue · comments
Felix commented
I have added a custom linter with the flag --linter='imp:goimports -l -local github.com/cloudradar-monitoring/cagent:^(?P<pathh>.*?\.go)$'
. After some back and forth I got it running but the output looks a bit weird:
Gives me:
config.go:1::warning: (imp)
cpu.go:1::warning: (imp)
mem.go:1::warning: (imp)
mem_windows.go:1::warning: (imp)
processes_notwindows.go:1::warning: (imp)
raid_test.go:1::warning: (imp)
types.go:1::warning: (imp)
Not really sure why always :1::warning:
is added. Guess it should help identify the problem but the original output is only paths without an explanation.
Can I get rid of this :1::warning:
somehow or do I have to adjust the pattern for that?
Also, is there somewhere an explanation about how to use the pattern? Which things to extract for example?
Daniel Nephin commented