mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
moved generated data to data subpackage
This commit is contained in:
committed by
Santiago M. Mola
parent
5a8c748dbe
commit
7e827e47ef
6
utils.go
6
utils.go
@ -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
|
||||
|
Reference in New Issue
Block a user