From 24dc66d9f57fff45e5b0a080586ae4493248a6c4 Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Fri, 26 Feb 2021 18:01:39 +0200 Subject: [PATCH] Fix go-header usage There's a known behavior of YAML template blocks using `|` that they insert a trailing newline. To remove it add `-` a.k.a block chomping indicator. --- .golangci.example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.example.yml b/.golangci.example.yml index 3512ec05a942..e55cbacb065b 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -231,7 +231,7 @@ linters-settings: regexp: # define here regexp type values, for example # AUTHOR: .*@mycompany\.com - template: # | + template: # |- # put here copyright header template for source code files, for example: # Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time. #