-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Ensure auto-replacement of deprecated methods in IntelliJ #1225
Comments
It shouldn't be too difficult to cook up a Checkstyle check that identifies a deprecated method/class that doesn't have a Can the maintainers advise on the proper place within the project structure? |
I think this should be in the checkstyle.xml and then any custom
implementation code in a new folder. I have this issue planned for today,
so will report how far I can get :)
…On Sat, 28 Oct 2017, 12:09 Allon Murienik, ***@***.***> wrote:
It shouldn't be too difficult to cook up a Checkstyle check that
identifies a deprecated method/class that doesn't have a @link or @see
tag in its javadoc. I'm not quite sure where the right place for such a
check would be though.
Can the maintainers advise on the proper place within the project
structure?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1225 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrDb10gZ_hHrmAAsRa2AW0HY3bHw6_hks5swv11gaJpZM4QI6So>
.
|
So I have tried to make this work for the past couple of hours, but unsuccesfully. I am unable to get the check implementation on the classpath to actually be recognized by the checkstyle configuration. If you have any knowledge of how to do this with checkstyle and Gradle, please let me know. Sadly http://checkstyle.sourceforge.net/writingchecks.html is lackluster in this regard. |
Oh, my attempt is available at https://github.com/mockito/mockito/tree/custom-checkstyle |
Intellij 2017.3 has been released: https://www.jetbrains.com/idea/whatsnew/#v2017-3 |
I no longer think we should pursue this effort. |
Per https://blog.jetbrains.com/idea/2017/10/intellij-idea-2017-3-public-preview IntelliJ can now auto-suggest replacements for deprecated methods. Once IntelliJ 2017-3 is published, let's check whether our deprecations satisfy the requirements for this check.
Maybe we can also write a static analysis check that can automatically verify that whenever we deprecated method we:
@since
propertyThe text was updated successfully, but these errors were encountered: