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
MCHECKSTYLE-374 remove deprecated method calls #14
Conversation
Hmm somehow I was under the impression #13 had already been merged. Sorry for jumping the gun. |
Yes, the upgrade of checkstyle has been merged |
I am investigating the failures on Travis. |
Done. I will fix the commit message shortly. |
34923f6
to
ba2aea8
Compare
Commit message was updated.
This was done too. |
As stated above, these methods were just introduced into Checkstyle 8.2, so anything before that will not work as this is a breaking compatibility change. https://github.com/apache/maven-checkstyle-plugin/blob/master/src/it/MCHECKSTYLE-332_cache-treewalker/pom.xml#L46 The one for the cache in checker can use the newer version. The one in treewalker will have to be removed as there will be no version that can test it. |
@eolivelli, please review proposal of removal of old tests from @rnveach . after this update plugin will not be compatible with checkstyle version less than 8.2. This update is very desirable by checkstyle project, as maven plugin is the only reason why we keep this methods as deprecated for long time. This update would allow us to move further in API cleanup. @rnveach, lets propose you update as second commit. Please also put ticks on all items in description. |
Okay, let's drop the test which is not compatible with new checkstyle API. You can do it in this commit Thank you all guys, I hope we will hve soon a great brand new release of this plugin |
checkstyle version
ba2aea8
to
15ca59a
Compare
@eolivelli done but it looks like travis is facing the same issue our repo is having, downloading open jdk 9+. I also made some additional changes to |
I figured out my problem. It won't work with Eclipse's embedded maven and needs a real maven installation. I ran all the tests and they pass. |
Tests passed on Apache CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work
merged as 29ebada
Since maven-checkstyle upgrade it's default version of checkstyle, we are hoping that we can replace the use of deprecated methods. This replaces deprecated methods with their newer replacements.
These methods have been deprecated since probably 8.2 but can't be removed from main repo because the plugin still uses them and this would break our own CI which relies on the plugin. This would break backward compatibility in the plugin as these only came around at 8.2.
ConfigurationLoader.loadConfiguration
is also deprecated but hasn't been converted yet because I wanted your input on how you wanted to convertrequest.isOmitIgnoredModules()
to the enumerationIgnoredModulesOptions
as there is no conversion method.Let me know if you are willing to accept this and it needs a JIRA.
This doesn't pass for me even on master.
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MCHECKSTYLE-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MCHECKSTYLE-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean verify
).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.