Skip to content

Commit

Permalink
refactor: Test change to debug windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Apr 11, 2024
1 parent 583e026 commit 12df583
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/linter/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(),
Expand All @@ -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);
Expand Down

0 comments on commit 12df583

Please sign in to comment.