mirror of
https://github.com/mgechev/revive.git
synced 2025-11-29 22:28:23 +02:00
Lint cleanup (#679)
This commit is contained in:
@@ -13,7 +13,7 @@ type JSON struct {
|
||||
}
|
||||
|
||||
// Name returns the name of the formatter
|
||||
func (f *JSON) Name() string {
|
||||
func (*JSON) Name() string {
|
||||
return "json"
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ type jsonObject struct {
|
||||
}
|
||||
|
||||
// Format formats the failures gotten from the lint.
|
||||
func (f *JSON) Format(failures <-chan lint.Failure, config lint.Config) (string, error) {
|
||||
func (*JSON) Format(failures <-chan lint.Failure, config lint.Config) (string, error) {
|
||||
var slice []jsonObject
|
||||
for failure := range failures {
|
||||
obj := jsonObject{}
|
||||
|
||||
Reference in New Issue
Block a user