Skip to content

Commit

Permalink
fix(linter): Allow multiple copyright years (#125)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martinez Trivino <mtrivino@vmware.com>
  • Loading branch information
Miguel Martínez Triviño authored Jan 11, 2022
1 parent 19f99da commit be6c0e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ linters-settings:
threshold: 400
goheader:
template-path: code-header-template.txt
values:
regexp:
copyright-year: 202[1-2]
2 changes: 1 addition & 1 deletion code-header-template.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Copyright {{YEAR}} VMware, Inc.
Copyright {{copyright-year}} VMware, Inc.
SPDX-License-Identifier: BSD-2-Clause

0 comments on commit be6c0e5

Please sign in to comment.