moved generated data to data subpackage

This commit is contained in:
David Paz
2017-06-08 12:28:36 +02:00
committed by Santiago M. Mola
parent 5a8c748dbe
commit 7e827e47ef
33 changed files with 298216 additions and 297637 deletions

View File

@ -4,6 +4,8 @@ import (
"bytes"
"path/filepath"
"strings"
"gopkg.in/src-d/enry.v1/data"
)
var (
@ -43,12 +45,12 @@ func IsDotFile(path string) bool {
// IsVendor returns whether or not path is a vendor path.
func IsVendor(path string) bool {
return vendorMatchers.Match(path)
return data.VendorMatchers.Match(path)
}
// IsDocumentation returns whether or not path is a documentation path.
func IsDocumentation(path string) bool {
return documentationMatchers.Match(path)
return data.DocumentationMatchers.Match(path)
}
const sniffLen = 8000