-
Notifications
You must be signed in to change notification settings - Fork 509
Pull #18820: Consolidate CI to fix error-prone rewrite and spotbugs execution #2825
#2847
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,8 +184,14 @@ concerning what you are working on: | |
| Before creating a pull request, you might want to format (yes, spotless is formatted by spotless) | ||
| the code and check for possible bugs | ||
|
|
||
| * `./gradlew spotlessApply` | ||
| * `./gradlew spotbugsMain` | ||
| * Error Prone 🚧 | ||
| * `./gradlew assemble -Derror-prone=true` | ||
| * OpenRewrite ☑️ | ||
| * `./gradlew rewriteRun` | ||
| * Spotless ✨ | ||
| * `./gradlew spotlessApply` | ||
| * Spotbugs 🐞 | ||
| * `./gradlew spotbugsMain` | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| These checks are also run by the automated pipeline when you submit a pull request, if | ||
| the pipeline fails, first check if the code is formatted and no bugs were found. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| ## DO NOT FORCE PUSH | ||
|
|
||
| Please **DO NOT FORCE PUSH**. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing breaks that. | ||
|
|
||
| Please make sure that your [PR allows edits from maintainers](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork). Sometimes it's faster for us to just fix something than it is to describe how to fix it. | ||
|
|
@@ -16,3 +18,17 @@ If your change only affects a build plugin, and not the lib, then you only need | |
| If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update `CHANGES.md` for both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them. | ||
|
|
||
| This makes it easier for the maintainers to quickly release your changes :) | ||
|
|
||
| ## Check and format code | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this seems to be the critical point left behind last time. Communicating properly will help everybody to follow up as its done all over the other projects giving the convention and standard we also following. This will make sure its better digested by the community. |
||
|
|
||
| Before creating a pull request, you might want to format (yes, spotless is formatted by spotless) | ||
| the code and check for possible bugs | ||
|
|
||
| * Error Prone 🚧 | ||
| * `./gradlew assemble -Derror-prone=true` | ||
| * OpenRewrite ☑️ | ||
| * `./gradlew rewriteRun` | ||
| * Spotless ✨ | ||
| * `./gradlew spotlessApply` | ||
| * Spotbugs 🐞 | ||
| * `./gradlew spotbugsMain` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionSha256Sum=0d585f69da091fc5b2beced877feab55a3064d43b8a1d46aeb07996b0915e0e0 | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rewrite update. |
||
| distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06 | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,6 +64,7 @@ | |
| import com.diffplug.spotless.SerializedFunction; | ||
| import com.diffplug.spotless.cpp.ClangFormatStep; | ||
| import com.diffplug.spotless.extra.EclipseBasedStepBuilder; | ||
| import com.diffplug.spotless.extra.P2Provisioner; | ||
| import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep; | ||
| import com.diffplug.spotless.generic.EndWithNewlineStep; | ||
| import com.diffplug.spotless.generic.FenceStep; | ||
|
|
@@ -97,7 +98,7 @@ protected final Provisioner provisioner() { | |
| return spotless.getRegisterDependenciesTask().getTaskService().get().provisionerFor(spotless); | ||
| } | ||
|
|
||
| protected final com.diffplug.spotless.extra.P2Provisioner p2Provisioner() { | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prone stuff but rewrite could cover this as well of course. |
||
| protected final P2Provisioner p2Provisioner() { | ||
| return spotless.getRegisterDependenciesTask().getTaskService().get().p2ProvisionerFor(spotless); | ||
| } | ||
|
|
||
|
|
||

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.
here seems to be no gate keeper, calling this goal: