Upgrade Checkstyle to latest version and modernize `storm_checkstyle.xml`

Open
#8,585 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java

Research direction

Locate the Checkstyle dependency and storm_checkstyle.xml, then review the current version and configuration against a supported modern release. Verify the updated configuration handles modern Java syntax and CustomImportOrder behavior without deprecated or removed properties. Done means the dependency and XML configuration are compatible and the project's Checkstyle validation passes.

Written by the indexing model from the issue text.

Description

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
Dominant language
Java
Stars
6.7k
Forks
4k
Avg merge
1d 5h
Merged PRs (30d)
86

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/storm

All issues in apache/storm

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.