1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-13 01:00:17 +02:00

Implement command line arguments

This commit is contained in:
mgechev
2018-01-27 16:22:17 -08:00
parent a227153bc2
commit 8746067321
8 changed files with 218 additions and 106 deletions

View File

@ -12,6 +12,11 @@ type JSONFormatter struct {
Metadata lint.FormatterMetadata
}
// Name returns the name of the formatter
func (f *JSONFormatter) Name() string {
return "json"
}
// Format formats the failures gotten from the lint.
func (f *JSONFormatter) Format(failures <-chan lint.Failure, config lint.RulesConfig) (string, error) {
var slice []lint.Failure