Skip to content

Commit 260dc80

Browse files
Bump go-header to v0.4.2 (#1585)
Signed-off-by: Denis Tingajkin <denis.tingajkin@xored.com>
1 parent 306816e commit 260dc80

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.golangci.example.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -209,27 +209,28 @@ linters-settings:
209209
values:
210210
const:
211211
# define here const type values in format k:v, for example:
212-
# YEAR: 2020
213212
# COMPANY: MY COMPANY
214213
regexp:
215214
# define here regexp type values, for example
216215
# AUTHOR: .*@mycompany\.com
217-
template:
216+
template: # |
218217
# put here copyright header template for source code files, for example:
219-
# {{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
220-
# SPDX-License-Identifier: Apache-2.0
218+
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
221219
#
222-
# Licensed under the Apache License, Version 2.0 (the "License");
223-
# you may not use this file except in compliance with the License.
224-
# You may obtain a copy of the License at:
225-
#
226-
# http://www.apache.org/licenses/LICENSE-2.0
227-
#
228-
# Unless required by applicable law or agreed to in writing, software
229-
# distributed under the License is distributed on an "AS IS" BASIS,
230-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
231-
# See the License for the specific language governing permissions and
232-
# limitations under the License.
220+
# {{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
221+
# SPDX-License-Identifier: Apache-2.0
222+
223+
# Licensed under the Apache License, Version 2.0 (the "License");
224+
# you may not use this file except in compliance with the License.
225+
# You may obtain a copy of the License at:
226+
227+
# http://www.apache.org/licenses/LICENSE-2.0
228+
229+
# Unless required by applicable law or agreed to in writing, software
230+
# distributed under the License is distributed on an "AS IS" BASIS,
231+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232+
# See the License for the specific language governing permissions and
233+
# limitations under the License.
233234
template-path:
234235
# also as alternative of directive 'template' you may put the path to file with the template source
235236
goimports:

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/ashanbrown/makezero v0.0.0-20201205152432-7b7cdbb3025a
1111
github.com/bombsimon/wsl/v3 v3.1.0
1212
github.com/daixiang0/gci v0.2.7
13-
github.com/denis-tingajkin/go-header v0.4.1
13+
github.com/denis-tingajkin/go-header v0.4.2
1414
github.com/fatih/color v1.10.0
1515
github.com/go-critic/go-critic v0.5.2
1616
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)