Skip to content

Commit

Permalink
Merge pull request #1360 from pkulik0/header-regexp
Browse files Browse the repository at this point in the history
Update copyright header in linter with year regexp
  • Loading branch information
pkulik0 authored Sep 10, 2024
2 parents 293cb73 + 86a20ea commit 5728cfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ linters-settings:
gocognit:
min-complexity: 30
goheader:
values:
regexp:
year: (\d{4})
template: |-
Copyright 2024 Canonical.
Copyright {{year}} Canonical.
importas:
no-unaliased: false
no-extra-aliases: false
Expand Down

0 comments on commit 5728cfa

Please sign in to comment.