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:
parent
effde543d8
commit
eeabcb5376
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user