Conversation
|
Missing required label for changelog. Requires at least 1 of: bug, developer, dependencies, internal, localization, major-bug, major-rfe, rfe, regression-fix, removed, skip-changelog. Found: . You can add the required label by adding a comment with the following text: |
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>validate</phase> |
There was a problem hiding this comment.
cant compile like this to use rewrite for auto fix issues.
PMD and check both use verify goal too.
|
I fail to see how this is of use. The linked real-world examples are draft PRs outlined as PoC, implying there is no real-world example of this yet. |
The Need for Quality Enforcement in Jenkins I wouldn’t waste time on this if there weren’t so much waiting to be fixed, rewritten, or addressed. The current de facto standard leaves a massive gap, especially with all the unused code lingering around. This either suggests Jenkins doesn’t prioritize quality—or fails to enforce it. Failing to act isn’t the issue; tools exist to solve this. But if this is intentionally ignored, then just admit that all this unused clutter serves some "magical benefit." Elsewhere, it’d be labeled technical debt—yet here, it persists unchecked. Static Analysis: A Non-Negotiable Standard The Checkstyle project recognizes this: without static code analysis enforcing quality gates, you get quantity—not quality. Given the endless security flaws, bugs, and vulnerabilities, every project needs static analysis. Jenkins seems to grasp this, leveraging tools like SpotBugs, SonarLint, and Checkstyle. Yet PMD remains excluded—a tool that could purge the unused garbage polluting the codebase. |
Add
|
|
yes defacto the whole project it broken by design... |
|
applying spotless changes everything this has to be done once or the config needs to be aligned with check. Its only possible because spotless is not activated by default... |
|
first need to fix current project setup: |
Just because its not merged yet, does not mean, it does not exist or work. Of course there are several projects, including rewrite itself, using autofix up for issues/flaws/errors, whatsoever. Considering the overall broken project configuration, it seem to be a good time to increment, improve, and care about the project in general, considering it large-scale. No offence given, just want to help and address things clearly. |
|
There's too much fuzz in the spam of PRs you have created to see a clear goal and strategy. I recommend opening one PR with a motivation, opening it for discussion on the mailing list, and waiting to get it merged before opening more without clear consensus if this is the approach we want to take. Additionally, for better readability, I recommend editing the PR body instead of commenting over and over to your monologue; this is incredibly difficult to follow across all PRs, plus it creates plenty of unnecessary emails we need to work through... Instead of creating PRs over and over again, you can mark them as draft and push your changes until you are fine with them, marking your PR as ready for review afterward. There's no need to create a new PR every time. |
|
Yes, please excuse. |
And yet you have created more PRs instead of reworking/implementing my suggestions. Edit: I took a brief look over your other contributions approaching these kinds of PRs. It looks - at least to me - that many maintainers reject or are not interested in these. |
|
no it was bad timing. Your comment was behind by creations. |
See JENKINS-XXXXX.
Testing done
Proposed changelog entries
Proposed changelog category
/label
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered (see query).Add
rewritesupport forerrorprone.refasterrulesI’d like to propose integrating Google’s Error Prone and its Picnic extension (demonstrated in Automating Away Bugs with Error Prone | PlatformCon 2023) to enable automated bug fixes via
rewriterules. This would complement Checkstyle’s static analysis capabilities by addressing semantic bugs rather than stylistic issues.Motivation
Error Prone’s
refaster/rewriterules can automatically:String.equals()misuse)Real-world adoptions show tangible benefits:
Proposal
errorprone.refasterrules-based rewritesDiscussion Points
Next Steps
I’m happy to:
relates to:
editorconfig.orgcheckstyle/checkstyle#16543rewritesupport forerrorprone.refasterrulescheckstyle/checkstyle#17487