Formatter represent a lint result formatter
| 46 | |
| 47 | // Formatter represent a lint result formatter |
| 48 | type Formatter interface { |
| 49 | // Name is a unique identifier for formatter |
| 50 | Name() string |
| 51 | |
| 52 | // Format formats the linter result |
| 53 | Format(result *Result) (string, error) |
| 54 | } |
| 55 | |
| 56 | // Rule represent a linter rule |
| 57 | type Rule interface { |