From 12df583ebbb857f3a21095764e98a24ddac167dd Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Thu, 11 Apr 2024 16:14:17 +0200 Subject: [PATCH] refactor: Test change to debug windows issue --- src/linter/linter.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/linter/linter.ts b/src/linter/linter.ts index d2ec5082a..d26a27940 100644 --- a/src/linter/linter.ts +++ b/src/linter/linter.ts @@ -8,6 +8,8 @@ import posixPath from "node:path/posix"; import {stat} from "node:fs/promises"; import {ProjectGraph} from "@ui5/project"; import {AbstractReader} from "@ui5/fs"; +import {getLogger} from "@ui5/logger"; +const log = getLogger("linter"); async function lint( resourceReader: AbstractReader, options: LinterOptions @@ -65,7 +67,8 @@ export async function lintProject({ resolvedFilePaths = transformFilePathsToVirtualPaths( absoluteFilePaths, fsBasePath, virBasePath, fsBasePathTest, virBasePathTest); } - + log.warn(`Resolved file paths to lint:`); + log.warn(JSON.stringify(resolvedFilePaths)); const res = await lint(reader, { rootDir, namespace: project.getNamespace(), @@ -76,7 +79,9 @@ export async function lintProject({ const relFsBasePath = path.relative(rootDir, fsBasePath); const relFsBasePathTest = fsBasePathTest ? path.relative(rootDir, fsBasePathTest) : undefined; + log.warn("Results:"); res.forEach((result) => { + log.warn(result.filePath); result.filePath = transformVirtualPathToFilePath(result.filePath, relFsBasePath, virBasePath, relFsBasePathTest, virBasePathTest);