Skip to content

Commit 89315e0

Browse files
authored
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.
1 parent c3c7bcd commit 89315e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ linters-settings:
231231
regexp:
232232
# define here regexp type values, for example
233233
# AUTHOR: .*@mycompany\.com
234-
template: # |
234+
template: # |-
235235
# put here copyright header template for source code files, for example:
236236
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
237237
#

0 commit comments

Comments
 (0)