Linter allows range of years in copyright

Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
Andrew Keesler 2021-01-05 13:35:09 -08:00 committed by Margo Crawford
parent dd3c990a51
commit 75bc5bdc7e

View File

@ -61,8 +61,12 @@ linters-settings:
lines: 150 lines: 150
statements: 50 statements: 50
goheader: goheader:
values:
regexp:
# YYYY or YYYY-YYYY
YEARS: \d\d\d\d(-\d\d\d\d)?
template: |- template: |-
Copyright 2020 the Pinniped contributors. All Rights Reserved. Copyright {{YEARS}} the Pinniped contributors. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0
goimports: goimports:
local-prefixes: go.pinniped.dev local-prefixes: go.pinniped.dev