Skip to content

feat: update checkstyle to 14.3.0 - #624

Merged
muhlba91 merged 1 commit into
checkstyle:masterfrom
muhlba91:issue/621
Oct 9, 2026
Merged

muhlba91 merged 1 commit into
checkstyle:masterfrom
muhlba91:issue/621

Conversation

@muhlba91

@muhlba91 muhlba91 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

related to #621

also updates dependencies like PMD and sets new suppressions for test classes after the Checkstyle upgrade to make verfication pass

Copilot AI balanced review requested due to automatic review settings October 9, 2026 06:49
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@muhlba91
muhlba91 merged commit cfbf94b into checkstyle:master Oct 9, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new private constructors and final modifiers introduce compatibility breaks, while the PMD workaround disables a rule globally.

2 open findings
What changed in this PR

Updates the plugin to Checkstyle 14.3.0 and adjusts verification tooling and formatting.

Changes:

  • Upgrades Checkstyle, PMD, and SpotBugs dependencies.
  • Updates rule-count expectations and compatibility documentation.
  • Adds suppressions and formatting changes for verification.
File Description
pom.xml Upgrades dependencies and pins verification configuration.
README.md Adds Checkstyle 14.3.0 compatibility.
config/​suppressions.xml Suppresses MissingCtor in tests.
config/​pmd-main.xml Disables a PMD rule globally.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​metadata/​SonarRulePropertyLoader.java Adds private constructors and final modifiers.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​metadata/​ModuleFactory.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​metadata/​CheckUtil.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​metadata/​CheckstyleMetadata.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleSeverityUtils.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleSensor.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleRulesDefinition.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleProfileExporter.java Reformats wrapped parameters.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstylePlugin.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleExecutor.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleConstants.java Applies formatting.
src/​main/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleConfiguration.java Applies formatting.
src/​test/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleSensorTest.java Applies formatting.
src/​test/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleRulesDefinitionTest.java Updates the expected rule count.
src/​test/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleProfileExporterTest.java Applies formatting.
src/​test/​java/​org/​sonar/​plugins/​checkstyle/​CheckstyleAuditListenerTest.java Applies formatting.
src/​it/​java/​org/​checkstyle/​plugins/​sonar/​RunPluginTest.java Applies formatting.
src/​it/​java/​org/​checkstyle/​plugins/​sonar/​CheckJarTest.java Applies formatting.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +26 to +30
public final class SonarRulePropertyLoader {

private List<AdditionalRuleProperties> rules;

private SonarRulePropertyLoader() {
Comment thread config/pmd-main.xml
Comment on lines +20 to +21
<!-- Jackson instantiates SonarRulePropertyLoader through its private constructor -->
<exclude name="MissingStaticMethodInNonInstantiatableClass"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants