()
| 21 | type Severity string |
| 22 | |
| 23 | func (s Severity) String() string { |
| 24 | switch s { |
| 25 | case SeverityError: |
| 26 | return "Error" |
| 27 | case SeverityWarn: |
| 28 | return "Warning" |
| 29 | default: |
| 30 | return "Severity(" + string(s) + ")" |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Formatter represent a lint result formatter |
| 35 | type Formatter interface { |
no outgoing calls