-
Notifications
You must be signed in to change notification settings - Fork 121
retire our own cup-packaging #734
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
Conversation
50a30a5 to
7ac9558
Compare
|
Ok, this is now ready for review. Having |
|
I'm fine with it. Just want to point out that
|
regisd
left a comment
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.
I guess a follow-up step is to remove our version of cup-maven-plugin and use vbmacher's one instead
Yes, he even says it's not actively maintained apart from tracking CUP releases, although he is taking pull requests. We may need to change again for the next CUP release, but it looks like they are rare now.
Indeed, that is the disadvantage of this solution. It was more important to me when there were still CUP releases every year or so, but I might still regret dropping the source from our repo when the next one comes out. At least CUP is now using git and quoting the hash for their release, so it's a bit easier to keep track of what's changing. I'm willing to risk it. The alternative would be to add source for our own
Instead of adding it to |
I tried using it, but it's a bit awkward, i.e. needs explicit naming of We could raise PRs for that based on our own plugin, though, and make it work. The vmbacher plugin does support pretty much all options that CUP provides, so that might indeed be the shortest path to a cup plugin with support for everything we want. |
Follow-up of jflex-de#734
* Exclude all generated code from error-prone. * Remove cup from the XepExcludedPaths Follow-up of #734 * Make fields final. https://errorprone.info/bugpattern/FieldCanBeFinal * Remove reference equality https://errorprone.info/bugpattern/ReferenceEquality * Keep UnnecessaryParentheses disabled ``` jflex/src/main/java/jflex/generator/Emitter.java:1173: error: [UnnecessaryParentheses] Unnecessary use of grouping parentheses println(" case " + (++last) + ": break;"); ^ (see https://errorprone.info/bugpattern/UnnecessaryParentheses) Did you mean 'println(" case " + ++last + ": break;");'? ``` https://errorprone.info/bugpattern/UnnecessaryParentheses * Reenable CatchAndPrintStackTrace Nothing to fix * Fix DefaultCharset Also Replace guava Charsets by java StandardCharsets https://errorprone.info/bugpattern/DefaultCharset LexScan was already fixed in #470 * Fix ConstructorInvokesOverridable make methods final. https://errorprone.info/bugpattern/ConstructorInvokesOverridable SuppressWarnings for OptionsDialog.java * Add default case to switch statements https://errorprone.info/bugpattern/MissingDefault * Enable Unused at ERROR Suppress warnings on WIP ucd_generator https://errorprone.info/bugpattern/Unused * Enable UnusedException as ERROR Fix violations when possible SuppressWarnings otherwise https://errorprone.info/bugpattern/UnusedException * Keep Var OFF it's quite controversial and there are tons of violations. https://errorprone.info/bugpattern/Var * Fix MixedArrayDimensions Rewrite C-style array declaration. https://errorprone.info/bugpattern/MixedArrayDimensions * Fix MethodCanBeStatic https://errorprone.info/bugpattern/MixedArrayDimensions * Fix WildcardImport List imports explicitly https://errorprone.info/bugpattern/WildcardImport
commit 48787cf Author: Régis Décamps <[email protected]> AuthorDate: Sat Mar 28 21:50:42 2020 +0100 Commit: GitHub <[email protected]> CommitDate: Sat Mar 28 21:50:42 2020 +0100 Minor: Address Error prone warnings (#749) * Exclude all generated code from error-prone. * Remove cup from the XepExcludedPaths Follow-up of #734 * Make fields final. https://errorprone.info/bugpattern/FieldCanBeFinal * Remove reference equality https://errorprone.info/bugpattern/ReferenceEquality * Keep UnnecessaryParentheses disabled ``` jflex/src/main/java/jflex/generator/Emitter.java:1173: error: [UnnecessaryParentheses] Unnecessary use of grouping parentheses println(" case " + (++last) + ": break;"); ^ (see https://errorprone.info/bugpattern/UnnecessaryParentheses) Did you mean 'println(" case " + ++last + ": break;");'? ``` https://errorprone.info/bugpattern/UnnecessaryParentheses * Reenable CatchAndPrintStackTrace Nothing to fix * Fix DefaultCharset Also Replace guava Charsets by java StandardCharsets https://errorprone.info/bugpattern/DefaultCharset LexScan was already fixed in #470 * Fix ConstructorInvokesOverridable make methods final. https://errorprone.info/bugpattern/ConstructorInvokesOverridable SuppressWarnings for OptionsDialog.java * Add default case to switch statements https://errorprone.info/bugpattern/MissingDefault * Enable Unused at ERROR Suppress warnings on WIP ucd_generator https://errorprone.info/bugpattern/Unused * Enable UnusedException as ERROR Fix violations when possible SuppressWarnings otherwise https://errorprone.info/bugpattern/UnusedException * Keep Var OFF it's quite controversial and there are tons of violations. https://errorprone.info/bugpattern/Var * Fix MixedArrayDimensions Rewrite C-style array declaration. https://errorprone.info/bugpattern/MixedArrayDimensions * Fix MethodCanBeStatic https://errorprone.info/bugpattern/MixedArrayDimensions * Fix WildcardImport List imports explicitly https://errorprone.info/bugpattern/WildcardImport Updated from target/jflex-parent-1.9.0-SNAPSHOT-sources.jar
com.github.vbmacher:java-cup{-runtime}insteadThis should enable a JFlex build from source from a release package outside our own repo.