-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFD CommentsRefactoring - any plans for adding parameters? #351
Comments
Hey cal101, I spent a lot of time on the comments refactoring and it was not easy :)
Generally speaking, the idea is that you should not have code that is commented out in your code.
Unless you have good examples, this will probably never happen.
What kind of configuration parameters are you looking for? Having fun here. How about you? :) |
Moin Jean-Noël, I re-read my initial post now and I should have written a better introduction. I tend to Now for the details :-) I applied it to a code base with about 20 years of history, about 16k of files. I started writing down examples of code I don't want to autorefactor but soon realized that Let's get the bug out first:
Such comments won't get through code review today but they exist and are clearly located at the previous method and should not become javadoc of the following. I am having fun with stuff like stat at the moment. (Really ;-) I will add autorefactor steps to my groovy based transformation dsl. But for some autorefactor rules configurations would be handy:
I understand that configuration parameters can make the test input explode. If I find some time I will try to make up a real example that can be discussed. Bye, |
Don't worry I did not think at all you were trying to diminish the work on the comments refactoring. Because I spent quite a lot of time on it, so I am very happy you like it. Sorry for missing the discussion on gitter, my availability has reduced drastically since I started this project. Your ideas for configuring comments refactoring (in the DSL) are interesting. Please raise issues for these. For the "code" bug you reported, I am sorry, we can't do much about it. For others, it is probably best to do like you generally do: open specific bugs/RFEs for each rule. Some problems may be directly fixed inside the rule itself. Others may require some kind of configuration indeed. We'll have to figure out a way to test it. |
Hi again!
I was surprised about the good results of the comments refactoring.
There is one kind of change I would like to suppress:
If one or a bunch of constants ("public|private final ...") is commented out with line comments I don't want them to be converted to java doc comments. Could be easily matched by some regular expression.
Are there any plans for adding configuration parameters to AutoRefactor? Or do you consider that a philosophical standpoint that it should not be possible to do that?
Would you consider configuration parameters on code level?
Have fun,
cal
The text was updated successfully, but these errors were encountered: