Skip to content

Commit

Permalink
Fix go-header usage (#1785)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
syndbg committed Feb 26, 2021
1 parent c3c7bcd commit 89315e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.example.yml
Expand Up @@ -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.
#
Expand Down

0 comments on commit 89315e0

Please sign in to comment.