Skip to content

Commit

Permalink
fix: Log issues with absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 13, 2024
1 parent bc3237b commit 200a307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formatter/text.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import chalk from "chalk";
import path from "node:path";
import {LintMessageSeverity, LintResult, LintMessage} from "../detectors/AbstractDetector.js";

function formatSeverity(severity: LintMessageSeverity) {
Expand Down Expand Up @@ -42,7 +43,7 @@ export class Text {
totalWarningCount += warningCount;
totalFatalErrorCount += fatalErrorCount;

this.#writeln(chalk.inverse(filePath));
this.#writeln(chalk.inverse(path.resolve(process.cwd(), filePath)));

// Group messages by rule
const rules = new Map<string, LintMessage[]>();
Expand Down

0 comments on commit 200a307

Please sign in to comment.