Skip to content

Commit 52cc05e

Browse files
committed
goheader linter
1 parent 5640660 commit 52cc05e

7 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/goheader.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SPDX-License-Identifier: BSD-3-Clause

closer/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- goconst
2020
- gocritic
2121
- gofmt
22+
- goheader
2223
- goimports
2324
- gosec
2425
- gosimple
@@ -169,6 +170,9 @@ linters-settings:
169170
- pattern: 'interface{}'
170171
replacement: 'any'
171172

173+
goheader:
174+
template-path: ../.github/goheader.tmpl
175+
172176
gosec:
173177
excludes:
174178
# _ instead of err checks

ctxkey/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- goconst
2020
- gocritic
2121
- gofmt
22+
- goheader
2223
- goimports
2324
- gosec
2425
- gosimple
@@ -164,6 +165,9 @@ linters-settings:
164165
- sliceClear
165166
- stringXbytes
166167

168+
goheader:
169+
template-path: ../.github/goheader.tmpl
170+
167171
gosec:
168172
excludes:
169173
# _ instead of err checks

protowrap/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- goconst
2020
- gocritic
2121
- gofmt
22+
- goheader
2223
- goimports
2324
- gosec
2425
- gosimple
@@ -169,6 +170,9 @@ linters-settings:
169170
- pattern: 'interface{}'
170171
replacement: 'any'
171172

173+
goheader:
174+
template-path: ../.github/goheader.tmpl
175+
172176
gosec:
173177
excludes:
174178
# _ instead of err checks

strcase/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ linters:
2020
- goconst
2121
- gocritic
2222
- gofmt
23+
- goheader
2324
- goimports
2425
- gosec
2526
- gosimple
@@ -170,6 +171,9 @@ linters-settings:
170171
- pattern: 'interface{}'
171172
replacement: 'any'
172173

174+
goheader:
175+
template-path: ../.github/goheader.tmpl
176+
173177
gosec:
174178
excludes:
175179
# _ instead of err checks

sync/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ linters:
2020
- goconst
2121
- gocritic
2222
- gofmt
23+
- goheader
2324
- goimports
2425
- gosec
2526
- gosimple
@@ -170,6 +171,9 @@ linters-settings:
170171
- pattern: 'interface{}'
171172
replacement: 'any'
172173

174+
goheader:
175+
template-path: ../.github/goheader.tmpl
176+
173177
gosec:
174178
excludes:
175179
# _ instead of err checks

time/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- goconst
2020
- gocritic
2121
- gofmt
22+
- goheader
2223
- goimports
2324
- gosec
2425
- gosimple
@@ -164,6 +165,9 @@ linters-settings:
164165
- sliceClear
165166
- stringXbytes
166167

168+
goheader:
169+
template-path: ../.github/goheader.tmpl
170+
167171
gosec:
168172
excludes:
169173
# _ instead of err checks

0 commit comments

Comments
 (0)