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:
@ -20,6 +20,11 @@ type CLIFormatter struct {
|
||||
Metadata lint.FormatterMetadata
|
||||
}
|
||||
|
||||
// Name returns the name of the formatter
|
||||
func (f *CLIFormatter) Name() string {
|
||||
return "cli"
|
||||
}
|
||||
|
||||
func formatFailure(failure lint.Failure, severity lint.Severity) []string {
|
||||
fString := color.BlueString(failure.Failure)
|
||||
fName := color.RedString(failure.RuleName)
|
||||
|
Reference in New Issue
Block a user