You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-This source code is licensed under the MIT license found in the LICENSE file.\n+This source code is licensed under the MIT license found in the LICENSE file.
This causes golangci-lint to fail because the configured template content doesn't match the parsed text.
To fix this problem the YAML block chomping syntax must be used for the multiline-string so that the final newline at the end gets stripped:
-template: |+template: |-
The text was updated successfully, but these errors were encountered:
The configuration of the go-header [1] linter is defined in the
golangci-lint [2] YAML configuration, but the YAML multiline-string [3]
doesn't used "block chomping [4] which resulted in a final newline at
the end of the template.
```diff
-This source code is licensed under the MIT license found in the LICENSE file.\n
+This source code is licensed under the MIT license found in the LICENSE file.
```
This causes golangci-lint to fail because the configured template
content doesn't matched the parsed text.
To fix this problem the YAML "block chomping" syntax is now used for the
multiline-string so that the final newline at the end gets stripped.
[1]: https://github.com/denis-tingajkin/go-header
[2]: https://github.com/golangci/golangci-lint
[3]: https://yaml-multiline.info
[4]: https://yaml.org/spec/1.2/spec.html#id2794534GH-6
…er (#7)
The configuration of the go-header [1] linter is defined in the
golangci-lint [2] YAML configuration, but the YAML multiline-string [3]
doesn't used "block chomping [4] which resulted in a final newline at
the end of the template.
```diff
-This source code is licensed under the MIT license found in the LICENSE file.\n
+This source code is licensed under the MIT license found in the LICENSE file.
```
This causes golangci-lint to fail because the configured template
content doesn't matched the parsed text.
To fix this problem the YAML "block chomping" syntax is now used for the
multiline-string so that the final newline at the end gets stripped.
[1]: https://github.com/denis-tingajkin/go-header
[2]: https://github.com/golangci/golangci-lint
[3]: https://yaml-multiline.info
[4]: https://yaml.org/spec/1.2/spec.html#id2794534FixesGH-6
The configuration of the go-header linter is defined in the golangci-lint YAML configuration, but the YAML multiline-string doesn't uses "block chomping which results in a final newline at the end of the template.
This causes golangci-lint to fail because the configured template content doesn't match the parsed text.
To fix this problem the YAML block chomping syntax must be used for the multiline-string so that the final newline at the end gets stripped:
The text was updated successfully, but these errors were encountered: