From 57d20a4ff0601f6added9cb40b4c20046313685d Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Fri, 27 Sep 2024 08:37:37 +0200 Subject: [PATCH] Consistent reporter output --- packages/knip/src/reporters/symbols.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/knip/src/reporters/symbols.ts b/packages/knip/src/reporters/symbols.ts index 1e03c4bec..0abddd9a0 100644 --- a/packages/knip/src/reporters/symbols.ts +++ b/packages/knip/src/reporters/symbols.ts @@ -19,7 +19,7 @@ const logIssueRecord = (issues: Issue[]) => { const pos = issue.line === undefined ? '' : `:${issue.line}${issue.col === undefined ? '' : `:${issue.col}`}`; const cell = `${relative(issue.filePath)}${pos}`; table.cell('filePath', print(cell)); - issue.isFixed && table.cell('fixed', print('(fixed)')); + issue.isFixed && table.cell('fixed', print('(removed)')); table.newRow(); } console.log(table.sort(['filePath', 'parentSymbol', 'symbol']).print().trim()); @@ -41,7 +41,7 @@ export default ({ report, issues, tagHints, configurationHints, noConfigHints, i title && logTitle(title, issuesForType.length); for (const issue of issuesForType) { const relPath = toRelative(issue.filePath); - if (issue.isFixed) console.log(picocolors.gray(`${relPath} (deleted)`)); + if (issue.isFixed) console.log(picocolors.gray(`${relPath} (removed)`)); else if (issue.severity === 'warn') console.log(picocolors.gray(relPath)); else console.log(relPath); }