Skip to content

Commit c01a04b

Browse files
authored
docs: update goheader.template reference (#5477)
1 parent 3eecab1 commit c01a04b

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.golangci.next.reference.yml

+17-19
Original file line numberDiff line numberDiff line change
@@ -1346,27 +1346,25 @@ linters-settings:
13461346
# Define here regexp type values.
13471347
# for example:
13481348
AUTHOR: .*@mycompany\.com
1349-
# The template use for checking.
1349+
# The template used for checking.
1350+
# Put here copyright header template for source code files
1351+
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
13501352
# Default: ""
13511353
template: |-
1352-
# Put here copyright header template for source code files
1353-
# For example:
1354-
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
1355-
#
1356-
# {{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
1357-
# SPDX-License-Identifier: Apache-2.0
1358-
1359-
# Licensed under the Apache License, Version 2.0 (the "License");
1360-
# you may not use this file except in compliance with the License.
1361-
# You may obtain a copy of the License at:
1362-
1363-
# http://www.apache.org/licenses/LICENSE-2.0
1364-
1365-
# Unless required by applicable law or agreed to in writing, software
1366-
# distributed under the License is distributed on an "AS IS" BASIS,
1367-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1368-
# See the License for the specific language governing permissions and
1369-
# limitations under the License.
1354+
{{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
1355+
SPDX-License-Identifier: Apache-2.0
1356+
1357+
Licensed under the Apache License, Version 2.0 (the "License");
1358+
you may not use this file except in compliance with the License.
1359+
You may obtain a copy of the License at:
1360+
1361+
http://www.apache.org/licenses/LICENSE-2.0
1362+
1363+
Unless required by applicable law or agreed to in writing, software
1364+
distributed under the License is distributed on an "AS IS" BASIS,
1365+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1366+
See the License for the specific language governing permissions and
1367+
limitations under the License.
13701368
# As alternative of directive 'template', you may put the path to file with the template source.
13711369
# Useful if you need to load the template from a specific file.
13721370
# Default: ""

0 commit comments

Comments
 (0)