Skip to content

Commit 5871a4c

Browse files
committed
remove test file check
Signed-off-by: yeya24 <[email protected]>
1 parent 13ae064 commit 5871a4c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/golinters/promlinter.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package golinters
33
import (
44
"fmt"
55
"go/ast"
6-
"strings"
76
"sync"
87

98
"github.com/yeya24/promlinter"
@@ -36,10 +35,6 @@ func NewPromlinter() *goanalysis.Linter {
3635
files := make([]*ast.File, 0)
3736

3837
for _, f := range pass.Files {
39-
if strings.HasSuffix(pass.Fset.Position(f.Pos()).Filename, "_test.go") {
40-
continue
41-
}
42-
4338
files = append(files, f)
4439
}
4540
issues := promlinter.RunLint(pass.Fset, files, promlinter.Setting{

0 commit comments

Comments
 (0)