Lint files that use cgo.
go/build separates Go files into two categories (not counting test
files): pure Go files (GoFiles), and files that use cgo (CgoFiles).
Signed-off-by: David Symonds <dsymonds@golang.org>
diff --git a/golint/golint.go b/golint/golint.go
index 697c2d0..eb39199 100644
--- a/golint/golint.go
+++ b/golint/golint.go
@@ -114,6 +114,7 @@
var files []string
files = append(files, pkg.GoFiles...)
+ files = append(files, pkg.CgoFiles...)
files = append(files, pkg.TestGoFiles...)
if pkg.Dir != "." {
for i, f := range files {