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 committed Jan 3, 2023
1 parent 25822c2 commit a615303
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/configs/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ linters:
- forbidigo
- goconst
- gofmt
# - goheader
- goheader
- goimports
- gosimple
- govet
Expand Down 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 a615303

Please sign in to comment.