mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
Rename and docs
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package rule
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
@@ -76,9 +75,6 @@ func (w lintFileHeader) Visit(n ast.Node) ast.Visitor {
|
||||
comment += text
|
||||
}
|
||||
|
||||
fmt.Println("#############")
|
||||
fmt.Println(comment)
|
||||
fmt.Println("#############")
|
||||
if !w.regex.Match([]byte(comment)) {
|
||||
w.onFailure(failure)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user