Skip to content

Commit

Permalink
Merge pull request #2 from cofide/fix-golangci-run
Browse files Browse the repository at this point in the history
fix: Update `goheader` linter setting to support 2024 and onwards
  • Loading branch information
markgoddard authored Jan 3, 2025
2 parents 5075ada + 1dd13c2 commit a4125a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ linters-settings:
values:
const:
COMPANY: Cofide Limited
regexp:
VALID_YEAR: 202[4-9]|20[3-9][0-9]|2[1-9][0-9][0-9]
# Require Cofide copyright and SPDX license in all source files.
template: |
Copyright {{ MOD-YEAR }} {{ COMPANY }}.
SPDX-License-Identifier: Apache-2.0
template: |-
Copyright {{ VALID_YEAR }} {{ COMPANY }}.
SPDX-License-Identifier: Apache-2.0

0 comments on commit a4125a5

Please sign in to comment.