Skip to content

Commit 1416068

Browse files
bradeglersethvargo
authored andcommitted
fix: added more flexibility to the golang-lint regex for header. (#53)
A single tab should be valid on the // http://www.apache.org/licenses/LICENSE-2.0 line since that's what gofumpt seems to like to do. The current regex is looking for atleast 2 tabs.
1 parent 00a5463 commit 1416068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ linters-settings:
113113
values:
114114
regexp:
115115
YEAR_AUTHOR: '\d{4} .*'
116-
INDENTATION: '[\t\f ]{2,}'
116+
INDENTATION: '[\t\f]+|[ ]{2,}'
117117
# default: ""
118118
template: |-
119119
Copyright {{ YEAR_AUTHOR }}

0 commit comments

Comments
 (0)