Skip to content

Commit 90283d9

Browse files
committed
all_test.go: only lint .yaml files
Avoid linting editor backup files in the data/reports directory. Change-Id: I50306cb82460b92c9fad94b2f8f5e418d3153333 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/425093 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]>
1 parent 58fc3a6 commit 90283d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

all_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func TestLintReports(t *testing.T) {
5858
if fi.IsDir() {
5959
continue
6060
}
61+
if filepath.Ext(fi.Name()) != ".yaml" {
62+
continue
63+
}
6164
fn := filepath.Join(dir, fi.Name())
6265
if allFiles[fi.Name()] != "" {
6366
t.Errorf("report appears in multiple locations: %v, %v", allFiles[fi.Name()], fn)

0 commit comments

Comments
 (0)