Closed MDeLuise closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 16.80%. Comparing base (
840c13a
) to head (c27fdb9
). Report is 4 commits behind head on develop.
🚨 Try these New Features:
Description:
This PR modifies the checkstyle for the copyright header to no longer enforce the year
2022
. The checkstyle has been updated to dynamically handle the copyright years by either appending the current year to a single year or replacing the second year in a two-year range.Additionally, a script has been provided to automate the process of updating the copyright years across multiple files. The script:
Example:
Before:
After (assuming the current year is 2024):
Before:
After (assuming the current year is 2024):
Script
Below is the script used to apply these changes:
This script ensures that the copyright header is updated with the current year, either by appending it or replacing the second year in a two-year range, based on the existing header format.
Note
I did not set a dynamic current-year variable in the checkstyle configuration, as checkstyle does not support runtime variables in its configuration files. Since the RegexpHeader module only allows static regular expressions, setting the current year dynamically within the configuration file is not possible. Consequently, the header pattern must be updated manually each year if set to a fixed value.