Skip to content

Commit 2cc5297

Browse files
committed
Merge pull request #36 from jdelStrother/extensions
Fix “Cannot read property 'indexOf' of undefined” in exclusionBasedFileListBuilder
2 parents e802be4 + c387b94 commit 2cc5297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function exclusionBasedFileListBuilder(excludePaths) {
8080
allFiles.forEach(function(file, i, a){
8181
if(excludePaths.indexOf(file.split("/code/")[1]) < 0) {
8282
if(fs.lstatSync(file).isFile()) {
83-
if (!isFileIgnoredByLibrary(file) && isFileWithMatchingExtension(file)) {
83+
if (!isFileIgnoredByLibrary(file) && isFileWithMatchingExtension(file, extensions)) {
8484
analysisFiles.push(file);
8585
}
8686
}

0 commit comments

Comments
 (0)