AutoRefactor
AutoRefactor copied to clipboard
RFE: Introduce @SuppressAutoRefactor annotation
Hi!
Sometimes AutoRefactorings have bugs that are difficult to fix or are not yet fixed. Often those bugs come to surface only on very few compilation units.
But the concrete AutoRefactoring is still useful for the majority of other files.
I suggest AutoRefactor to look for a type annotation with simple name SuppressAutoRefactor
and if its value contains the name of the refactoring, that refactoring is suppressed for that type.
If the package name of the annotation is ignored the annotation can be created in some user custom package.
@SuppressAutoRefactor(value={"InlineCodeRatherThanPeremptoryConditionRefactoring"}, description="disabled because of AutoRefactor/issues/338")
Opinions?
It's a good idea but this kind of idea often keeps in the backlog for a long time :)
I have this itch and I am able to scratch ;-)
Good idea. Does it mean you are volunteering to implement it? ;)
In the mean time I have a scratch machine aka exclude/include in the transform dsl. :-/