We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63dacd5 commit 5d4d166Copy full SHA for 5d4d166
packages/knip/src/index.ts
@@ -165,7 +165,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
165
const touchedFiles = await fixer.fixIssues(issues);
166
if (isFormat) {
167
const report = await formatly(Array.from(touchedFiles), { cwd });
168
- if (report.ran && report.result.code === 0) {
+ if (report.ran && report.result && (report.result.runner === 'virtual' || report.result.code === 0)) {
169
debugLogArray('*', `Formatted files using ${report.formatter.name} (${report.formatter.runner})`, touchedFiles);
170
} else {
171
debugLogObject('*', 'Formatting files failed', report);
0 commit comments