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

未关闭
#8,585 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
java

调研方向

定位 Checkstyle 依赖项和 storm_checkstyle.xml,然后将当前版本和配置与受支持的现代版本进行对照检查。验证更新后的配置能够处理现代 Java 语法和 CustomImportOrder 行为,且不包含已弃用或已移除的属性。当依赖项和 XML 配置兼容,并且项目的 Checkstyle 验证通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Java
星标
6.7k
派生
4k
平均合并
1 天 5 小时
30 天内合并 PR
86

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/storm 的其他 Issue

查看 apache/storm 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。