-
Notifications
You must be signed in to change notification settings - Fork 129
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
Issue #523: Add extraMvnOptions support to diff.groovy #538
Conversation
From checkstyle/checkstyle#9186 at https://checkstyle.semaphoreci.com/jobs/cdce7615-278e-4e64-8d91-68b6b3cef46b: This shows that the |
If we are converting this script to a Java project, then no. |
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.
1 minor issue.
--config $cfg.checkstyleCfg --ignoreExceptions --ignoreExcludes | ||
--checkstyleVersion $checkstyleVersion""" | ||
|
||
if (cfg.extraMvnRegressionOptions == true) { |
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.
Strangely, this is required, since if (cfg.extraMvnRegressionOptions)
does not work as intended. I assume this is because groovy is not strongly typed.
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.
Why wasn't this an issue with launch? https://github.com/checkstyle/contribution/blob/master/checkstyle-tester/launch.groovy#L243-L244
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.
The only difference that I can see is that we are accessing cfg
's fields and opposed to actually passing arguments to generateCheckstyleReport()
? Should I investigate?
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.
Its not that big a deal.
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.
Travis is restarted, ok to merge
Issue #523: Add extraMvnOptions support to diff.groovy
I am going to open a PR in Checkstyle for checkstyle/checkstyle#8960 in order to show that the arguements are passed to maven correctly.