Skip to content

Commit 33df98f

Browse files
Merge pull request #211 from wanyufe/copyright
change goheader copyright year rule
2 parents cefafbe + 97a6946 commit 33df98f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.golangci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ linters-settings:
33
values:
44
const:
55
AUTHOR: The Kubernetes Authors
6+
regexp:
7+
YR: '\d\d\d\d'
68
template: |-
7-
Copyright {{ YEAR }} {{ AUTHOR }}.
9+
Copyright {{ YR }} {{ AUTHOR }}.
810
911
Licensed under the Apache License, Version 2.0 (the "License");
1012
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)