Skip to content

Upgrade Checkstyle to latest version and modernize storm_checkstyle.xml #8585

@GGraziadei

Description

@GGraziadei

The project is currently using a significantly outdated version of Checkstyle (v8.2).
This version is several years old and lacks support for modern Java syntax and improved linting features found in the latest releases.
https://mvnrepository.com/artifact/com.puppycrawl.tools/checkstyle/versions

Continuing with this outdated version presents several issues:

  • Strict import enforcement: Newer versions of Checkstyle handle CustomImportOrder differently. We are currently seeing warnings (or being forced into specific import hacks) regarding the STATIC group because the old version's rules are inconsistent with modern IDE defaults.
  • Configuration inconsistency: the file storm_checkstyle.xml is based on an ancient version of Google’s checkstyle config (v7.7). Many properties used in our XML are deprecated or have been removed in Checkstyle 10+, making the current configuration incompatible with the latest tooling.
  • Modern Java support.

Proposed Changes:

  • Bump dependency
  • Update storm_checkstyle.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions