From 75bc5bdc7eadc97dbd494b009dc6700b78f2194d Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 5 Jan 2021 13:35:09 -0800 Subject: [PATCH] Linter allows range of years in copyright Signed-off-by: Margo Crawford --- .golangci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index a4190d1b..036d9695 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -61,8 +61,12 @@ linters-settings: lines: 150 statements: 50 goheader: + values: + regexp: + # YYYY or YYYY-YYYY + YEARS: \d\d\d\d(-\d\d\d\d)? template: |- - Copyright 2020 the Pinniped contributors. All Rights Reserved. + Copyright {{YEARS}} the Pinniped contributors. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 goimports: local-prefixes: go.pinniped.dev