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:
@ -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
|
||||
|
Reference in New Issue
Block a user