diff --git a/.golangci.yml b/.golangci.yml index 22393be7..c287c43e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -113,8 +113,11 @@ linters-settings: - name: bool-literal-in-expr - name: constant-logical-expr goheader: + values: + regexp: + copyright_regex: "Copyright © (\\d{4})(?: - (\\d{4}))? SUSE LLC" template: |- - Copyright © 2023 - {{ year }} SUSE LLC + {{copyright_regex}} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.