From 581fc6a2ce65a7190e60f0011b030f80e88ae653 Mon Sep 17 00:00:00 2001 From: Haris Osmanagic Date: Mon, 9 Jan 2023 12:31:28 +0100 Subject: [PATCH] Fix: copyright year doesn't have to be the current year --- .golangci.goheader.template | 2 +- .golangci.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.golangci.goheader.template b/.golangci.goheader.template index 58599758..947c941d 100644 --- a/.golangci.goheader.template +++ b/.golangci.goheader.template @@ -1,4 +1,4 @@ -Copyright © {{ YEAR }} Meroxa, Inc. +Copyright © {{ copyright-year }} Meroxa, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/.golangci.yml b/.golangci.yml index bd4511d2..8fae7642 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,9 @@ linters-settings: ignore-tests: true goheader: template-path: '.golangci.goheader.template' + values: + regexp: + copyright-year: 20[2-9]\d linters: # please, do not use `enable-all`: it's deprecated and will be removed soon.