diff --git a/src/lib/formatters/inspections.ts b/src/lib/formatters/inspections.ts index a1bd7ce..d52f432 100644 --- a/src/lib/formatters/inspections.ts +++ b/src/lib/formatters/inspections.ts @@ -26,7 +26,8 @@ export function formatAsInspections(failures: RuleFailure[], config: { [key: str ); result.messages.forEach(failure => { - const filePath = path.relative(process.cwd(), failure.getFileName()); + const relativeFilePath = path.relative(process.cwd(), failure.getFileName()); + const filePath = relativeFilePath.replace(/\\/g, '/'); // Ensure slashes on Windows const startPos = failure.getStartPosition().getLineAndCharacter(); const formattedMessage = `line ${startPos.line}, col ${ startPos.character