Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bezzubov <[email protected]>
  • Loading branch information
bzz committed Feb 4, 2019
1 parent ebec601 commit f93d23e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions enry.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
package enry // import "gopkg.in/src-d/enry.v1"

//go:generate make code-generate

/*
Package enry implements multiple strategies for programming language identification.
Expand All @@ -15,3 +11,6 @@ package enry // import "gopkg.in/src-d/enry.v1"
Upstream Linguist YAML files are used to generate datastructures for data
package.
*/
package enry // import "gopkg.in/src-d/enry.v1"

//go:generate make code-generate
5 changes: 2 additions & 3 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ func IsDocumentation(path string) bool {

// IsDotFile returns whether or not path has dot as a prefix.
func IsDotFile(path string) bool {
path = filepath.Clean(path)
base := filepath.Base(path)
return strings.HasPrefix(base, ".") && base != "." && base != ".."
base := filepath.Base(filepath.Clean(path))
return strings.HasPrefix(base, ".") && base != "."
}

// IsVendor returns whether or not path is a vendor path.
Expand Down

0 comments on commit f93d23e

Please sign in to comment.