From 89315e00fb242b953f9544d009ffe15f89dbb26a Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Fri, 26 Feb 2021 18:21:44 +0200 Subject: [PATCH] Fix go-header usage (#1785) 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. #