Handle Windows absolute paths in resolveUriToFile
This commit is contained in:
parent
c2fd5d10f6
commit
130a51dbc6
9 changed files with 25 additions and 11 deletions
3
lib/analysis-paths.js
generated
3
lib/analysis-paths.js
generated
|
|
@ -59,7 +59,8 @@ function includeAndExcludeAnalysisPaths(config) {
|
|||
// If the temporary or tools directory is in the working directory ignore that too.
|
||||
const tempRelativeToWorking = path.relative(process.cwd(), config.tempDir);
|
||||
let pathsIgnore = config.pathsIgnore;
|
||||
if (!tempRelativeToWorking.startsWith("..")) {
|
||||
if (!tempRelativeToWorking.startsWith("..") &&
|
||||
!path.isAbsolute(tempRelativeToWorking)) {
|
||||
pathsIgnore = pathsIgnore.concat(tempRelativeToWorking);
|
||||
}
|
||||
if (pathsIgnore.length !== 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue