From 6661ceed0773257bfc663241956a748b8e15e7e2 Mon Sep 17 00:00:00 2001 From: nialdaly Date: Thu, 2 Jan 2025 12:51:09 +0000 Subject: [PATCH 1/2] .golangci.yaml updated --- .golangci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 6edecbb..215b41d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -7,7 +7,9 @@ linters-settings: values: const: COMPANY: Cofide Limited + regexp: + VALID_YEAR: 202[4-9]|20[3-9][0-9]|2[1-9][0-9][0-9] # Require Cofide copyright and SPDX license in all source files. template: | - Copyright {{ MOD-YEAR }} {{ COMPANY }}. - SPDX-License-Identifier: Apache-2.0 \ No newline at end of file + Copyright {{ VALID_YEAR }} {{ COMPANY }}. + SPDX-License-Identifier: Apache-2.0 From 1ca79c0176f0c962c34dcf4d4062fc4108c418d2 Mon Sep 17 00:00:00 2001 From: nialdaly Date: Thu, 2 Jan 2025 12:54:44 +0000 Subject: [PATCH 2/2] Pipe minus added --- .golangci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 215b41d..fd6afcb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -10,6 +10,6 @@ linters-settings: regexp: VALID_YEAR: 202[4-9]|20[3-9][0-9]|2[1-9][0-9][0-9] # Require Cofide copyright and SPDX license in all source files. - template: | + template: |- Copyright {{ VALID_YEAR }} {{ COMPANY }}. SPDX-License-Identifier: Apache-2.0