mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
removes debug trace (#57)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package rule
|
package rule
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"go/ast"
|
"go/ast"
|
||||||
|
|
||||||
"strings"
|
"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`)
|
panic(`invalid value passed as argument number to the "max-public-structs" rule`)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("Name:", max, walker.current)
|
|
||||||
if walker.current > max {
|
if walker.current > max {
|
||||||
walker.onFailure(lint.Failure{
|
walker.onFailure(lint.Failure{
|
||||||
Failure: "you have exceeded the maximum number of public struct declarations",
|
Failure: "you have exceeded the maximum number of public struct declarations",
|
||||||
|
|||||||
Reference in New Issue
Block a user