Closed amass01 closed 2 years ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
Due to a change of go fmt
inside go1.19.
We have to enforce the directive style.
So the option allow-leading-space
has been dropped.
The syntax of directives is: [a-zA-Z]+:[a-zA-Z].*
.
The spaces around :
and after the //
must be removed.
If you do that your IDE or go fmt will format the directive as a directive and it will not add extra space.
Related to: https://github.com/golangci/golangci-lint/pull/3002 https://github.com/golangci/golangci-lint/issues/1658#issuecomment-1183148066
Noted, thank you
Welcome
Description of the problem
Latest (v1.48) nolintlint default config has a conflict with 1.19 gofmt. After #3002
nolintlint
complains about leading spaces in//nolint
comments by default and thegofmt
command re-adds the leading space.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository