Skip to content

Commit

Permalink
Merge pull request #211 from wanyufe/copyright
Browse files Browse the repository at this point in the history
change goheader copyright year rule
  • Loading branch information
jweite-amazon authored Jan 11, 2023
2 parents cefafbe + 97a6946 commit 33df98f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 33df98f

Please sign in to comment.