Skip to content

优化 checkstyle 在缺失版权声明时的报错#5825

Merged
Glavo merged 2 commits intoHMCL-dev:mainfrom
Glavo:checkstyle
Mar 22, 2026
Merged

优化 checkstyle 在缺失版权声明时的报错#5825
Glavo merged 2 commits intoHMCL-dev:mainfrom
Glavo:checkstyle

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Mar 22, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 旨在让 Checkstyle 在检测到源码文件缺失/不匹配版权声明(license header)时,给出更明确、更可操作的报错信息,从而提升开发者定位与修复效率。

Changes:

  • 将 Checkstyle 配置的 DTD 声明升级为 Checkstyle Configuration 1.3(使用 checkstyle.org 的 DTD 地址)
  • RegexpHeaderheader.mismatch 增加自定义提示信息,引导补齐版权声明

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo merged commit cf9b4aa into HMCL-dev:main Mar 22, 2026
5 checks passed
@Glavo Glavo deleted the checkstyle branch March 22, 2026 13:22
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