Skip to content

Commit

Permalink
don't exclude LICENSE files (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaynie committed Aug 4, 2017
1 parent ea7b468 commit afba506
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions linguist.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ var (
}
excludedFilenames = map[string]bool{
"npm-debug.log": true,
"LICENSE": true,
"LICENSE.md": true,
}
binaryResult = &Result{true, "", nil, true, false, true}
largeResult = &Result{true, "", nil, false, true, true}
Expand Down
2 changes: 1 addition & 1 deletion linguist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ func TestIgnoreExcludedExtension(t *testing.T) {
}

func TestIgnoreExcludedFilename(t *testing.T) {
r, err := GetLanguageDetails(context.Background(), "foo/LICENSE", []byte("foo\n"))
r, err := GetLanguageDetails(context.Background(), "npm-debug.log", []byte("foo\n"))
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit afba506

Please sign in to comment.