1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00

removes debug trace (#57)

This commit is contained in:
SalvadorC 2018-09-09 17:33:45 +02:00 committed by Minko Gechev
parent effde543d8
commit eeabcb5376

View File

@ -1,7 +1,6 @@
package rule
import (
"fmt"
"go/ast"
"strings"
@ -31,7 +30,6 @@ func (r *MaxPublicStructsRule) Apply(file *lint.File, arguments lint.Arguments)
panic(`invalid value passed as argument number to the "max-public-structs" rule`)
}
fmt.Println("Name:", max, walker.current)
if walker.current > max {
walker.onFailure(lint.Failure{
Failure: "you have exceeded the maximum number of public struct declarations",