Skip to content

Commit

Permalink
ci: Fix go-header linter rule to be any year (#1021)
Browse files Browse the repository at this point in the history
- Resolves #1020
- Description: Make the go-header linter place holder in the template be any year, instead of current year (default).
  • Loading branch information
shahzadlone authored and jsimnz committed Jan 8, 2023
1 parent e6c800f commit d87bae8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/configs/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,10 @@ linters-settings:
APL: "Apache License, Version 2.0"

regexp:
# define here regexp type values, for example
# AUTHOR: .*@mycompany\.com
ANY-YEAR: (20\d\d)

template: |-
Copyright {{ YEAR }} Democratized Data Foundation
Copyright {{ ANY-YEAR }} Democratized Data Foundation
Use of this software is governed by the {{ BSL }}
included in the file licenses/BSL.txt.
Expand Down

0 comments on commit d87bae8

Please sign in to comment.