Skip to content

Commit d959b6b

Browse files
committed
fix: don't exclude files outside the working directory by default
1 parent d3ffafc commit d959b6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isAbsolute, join, relative, sep} from "path";
1+
import {isAbsolute, join, relative} from "path";
22

33
import {getModifiedFilenames, resolveNearestGitDirectoryParent} from "./git-utils";
44
import {NO_LINE_CHANGE_DATA_ERROR, generateFilesWhitelistPredicate} from "./utils";
@@ -79,7 +79,6 @@ export function main(
7979
.map(path => join(gitDirectoryParent, path))
8080
.map(path => relative(workingDirectory, path))
8181
.filter(path => !isAbsolute(path))
82-
.filter(path => path !== ".." && !path.startsWith(`..${sep}`))
8382
.filter(selectedFormatter.hasSupportedFileExtension)
8483
.filter(generateFilesWhitelistPredicate(options.filesWhitelist))
8584
.filter(selectedFormatter.generateIgnoreFilePredicate(workingDirectory));

0 commit comments

Comments
 (0)