Skip to content

Commit be6c0e5

Browse files
author
Miguel Martínez Triviño
authored
fix(linter): Allow multiple copyright years (#125)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 19f99da commit be6c0e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.golangci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ linters-settings:
2727
threshold: 400
2828
goheader:
2929
template-path: code-header-template.txt
30+
values:
31+
regexp:
32+
copyright-year: 202[1-2]

code-header-template.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Copyright {{YEAR}} VMware, Inc.
1+
Copyright {{copyright-year}} VMware, Inc.
22
SPDX-License-Identifier: BSD-2-Clause

0 commit comments

Comments
 (0)