From be6c0e539364736ff2ebe742109fdfaf84f490f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADnez=20Trivi=C3=B1o?= Date: Tue, 11 Jan 2022 02:36:03 -0800 Subject: [PATCH] fix(linter): Allow multiple copyright years (#125) Signed-off-by: Miguel Martinez Trivino --- .golangci.yml | 3 +++ code-header-template.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 0f586015..59947a84 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -27,3 +27,6 @@ linters-settings: threshold: 400 goheader: template-path: code-header-template.txt + values: + regexp: + copyright-year: 202[1-2] diff --git a/code-header-template.txt b/code-header-template.txt index f0ca9f7f..93bbd3df 100644 --- a/code-header-template.txt +++ b/code-header-template.txt @@ -1,2 +1,2 @@ -Copyright {{YEAR}} VMware, Inc. +Copyright {{copyright-year}} VMware, Inc. SPDX-License-Identifier: BSD-2-Clause