From 97a69468bcf38818e0578aefb3095b28472a453d Mon Sep 17 00:00:00 2001 From: Yufei Wang Date: Tue, 10 Jan 2023 18:53:58 -0500 Subject: [PATCH] change goheader copyright year rule --- .golangci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index ab550edd..5cf6680a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,8 +3,10 @@ linters-settings: values: const: AUTHOR: The Kubernetes Authors + regexp: + YR: '\d\d\d\d' template: |- - Copyright {{ YEAR }} {{ AUTHOR }}. + Copyright {{ YR }} {{ AUTHOR }}. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.