Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

Description

Updates copyright years from 2023 to 2025 across all source files and adds Checkstyle enforcement to prevent outdated copyright headers.

Resolves #(issue)

Changes

  • Checkstyle configuration: Created custom checkstyle.xml extending Google Checks with RegexpHeader module enforcing Copyright 2016-2025 Berry Cloud Ltd. All rights reserved. format
  • Build integration: Modified pom.xml to reference custom Checkstyle config with explicit v10.6.0 dependency
  • Copyright updates: Updated 190 Java files and LICENSE from 2023 to 2025
  • Documentation: Added CHECKSTYLE.md with instructions for running checks and updating copyright in future years

Implementation Details

The RegexpHeader check validates copyright format on every Maven build:

<module name="RegexpHeader">
  <property name="header" value="^/\*\n \* Copyright 2016-2025 Berry Cloud Ltd\. All rights reserved\.\n \*/\n$"/>
  <property name="fileExtensions" value="java"/>
</module>

Future copyright updates require changing 3 locations: Java files, checkstyle.xml regex, and LICENSE file.

Checklist:

  • Public methods are documented
  • Public methods are tested
  • New and existing tests pass when run locally
  • There are no new warnings or errors

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkstyle.org
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/working/files-to-index7541662173002066739.list --sourceArchiveDir=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/trap/java (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[Enhancement]: Update copyright year and Checkstyle rule enforcement</issue_title>
<issue_description>### What

Update the project to ensure all copyright years are current (2025) across source files and configuration. Revise any Checkstyle configuration that enforces or validates copyright statements to match the latest year, and adjust all source headers accordingly.

Why

Keeping copyright information current is important for legal compliance and project professionalism. Ensuring the Checkstyle rules remain accurate helps maintain consistency and enables automated checks to catch outdated copyright statements.

Notes

This enhancement should include a review of the Checkstyle rules and automated scripts if present, plus updates to all source file headers (Java and others).</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits November 13, 2025 23:26
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Copilot AI changed the title [WIP] Update copyright year and Checkstyle rule enforcement Update copyright years to 2025 and enforce with Checkstyle Nov 13, 2025
Copilot AI requested a review from thomasturrell November 13, 2025 23:32
Copilot AI mentioned this pull request Nov 13, 2025
4 tasks
@thomasturrell thomasturrell marked this pull request as ready for review November 14, 2025 05:34
@thomasturrell
Copy link
Contributor

Implemented in #314

@thomasturrell thomasturrell deleted the copilot/update-copyright-year-checkstyle-again branch November 14, 2025 06:03
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.

[Enhancement]: Update copyright year and Checkstyle rule enforcement

2 participants