Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: CheckStyle checks copyright notice header #1197

Merged
merged 5 commits into from
Nov 24, 2024

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Nov 24, 2024

CheckStyle version 6.9 and onward support RexexpHeader module that checks header copyright notice.
We do not need to write the checker by our selves.

Pull request type

  • Build and release changes -> [build/release]

What does this PR change?

  • Add config/checkstyle/java.header properties.header configuration
  • Update config/checkstyle/checkstyle.xml to check headers
  • Remove copyright test in modules
  • Update coyright test to check only build.xml
  • Fix copyright holders in many places to fit the checker
  • Fix support center URL in filters4

Other information

The change will speedup unit tests because the copyright check is done in checkstyle process at once

CheckStyle has a directive RegexpHeader since checkstyle version 6.9.
We can use it for check copyright notice in source header

Signed-off-by: Hiroshi Miura <[email protected]>
Signed-off-by: Hiroshi Miura <[email protected]>
Copy link

❌ Quality checks failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/ozy2wuzkztkwk

Copy link

❌ Quality checks failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/ut5qxxo45ezfu

Copy link

❌ Quality checks failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/dbprqxrdpfvnw

@miurahr miurahr merged commit 4a568b0 into master Nov 24, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant