codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Feature request: Option to skip modifications (clean up, formatting, etc.) on files that have compilation error

Open chlopes opened this issue 4 years ago • 1 comments

Sometimes "remove unused using statements" feature (mostly when checked to run automatically) can worst things for files that have compilation errors.

// This line will be removed when applying "remove unused using instructions" in this condition.
using System;

// Typo. Missing the letter 'n' between letters 'o' and 's'.
Cosole.WriteLine("Hello World!");

Probably other types of modifications could make things worst too, so It'd be great to have an option to skip files that are not compiling with success.

chlopes avatar Nov 14 '21 23:11 chlopes

Thanks for the suggestion. I definitely agree this would be a nice feature. The existing APIs that CodeMaid leverage do not (to my knowledge) expose the compilation state.

codecadwallader avatar Nov 16 '21 13:11 codecadwallader