From 1bd6acac2729699bdbbe217ef21f69e227c9144a Mon Sep 17 00:00:00 2001 From: Bradley Falzon Date: Sun, 25 Sep 2016 19:25:03 +0930 Subject: [PATCH] #156 Exclude testdata directories from being checked --- check/testfiles/testdata/a.go | 1 + check/utils.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 check/testfiles/testdata/a.go diff --git a/check/testfiles/testdata/a.go b/check/testfiles/testdata/a.go new file mode 100644 index 0000000..69d29d3 --- /dev/null +++ b/check/testfiles/testdata/a.go @@ -0,0 +1 @@ +package testdata diff --git a/check/utils.go b/check/utils.go index 4c3cd60..dc9e20d 100644 --- a/check/utils.go +++ b/check/utils.go @@ -16,7 +16,7 @@ import ( ) var ( - skipDirs = []string{"Godeps", "vendor", "third_party"} + skipDirs = []string{"Godeps", "vendor", "third_party", "testdata"} skipSuffixes = []string{".pb.go", ".pb.gw.go", ".generated.go", "bindata.go", "_string.go"} skipFirstLines = []string{"code generated", "generated", "autogenerated", "@generated", "code autogenerated", "auto-generated"} )