From 35cced0b08ef4f780518974e32d33b6095bac004 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 6 Apr 2023 14:31:39 +0200 Subject: [PATCH] feat: use automatic year-range for goheader template --- .golangci.yml | 3 +++ code-header-template.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 36ce6ef4b..c117e0d03 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -28,6 +28,9 @@ linters-settings: min-complexity: 6 goheader: template-path: code-header-template.txt + values: + const: + year-range: "2018" issues: exclude-rules: diff --git a/code-header-template.txt b/code-header-template.txt index 9a2d19a76..68cb152e5 100644 --- a/code-header-template.txt +++ b/code-header-template.txt @@ -1,5 +1,5 @@ Vikunja is a to-do list application to facilitate your life. -Copyright 2018-2021 Vikunja and contributors. All rights reserved. +Copyright {{year-range}} Vikunja and contributors. All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public Licensee as published by