From 89be94c4808bf38d372d1b470bea8d0475ce9501 Mon Sep 17 00:00:00 2001 From: Alexandr Demicev Date: Thu, 2 Jan 2025 14:28:10 +0100 Subject: [PATCH] Change year requirement in file headers Signed-off-by: Alexandr Demicev --- .golangci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.