codemaid
codemaid copied to clipboard
Feature request: Option to skip modifications (clean up, formatting, etc.) on files that have compilation error
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.
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.