The result of which (among other errors in my file)...
main.go:13:1: no space between comment delimiter and comment text
Expected behavior
I expected the line //lint:ignore mnd to be ignored (I actually noticed this issue indirectly by revive via golangci-lint but was able to reproduce with revive directly).
Logs
[!NOTE]
Interestingly you'll see in the screenshot another comment line that does get ignored even though it shouldn't.
Desktop (please complete the following information):
OS: macOS Sonoma 14.4.1
Version of Go: go version go1.22.4 darwin/arm64
Additional context
Add any other context about the problem here.
I also tried modifying the config to use arguments = ["lint:"] rather than arguments = ["lint:ignore"] but that also didn't help.
Describe the bug I have defined a comment-spacings exclusion which isn't being respected
To Reproduce Steps to reproduce the behavior:
go install github.com/mgechev/revive@latest
The result of which (among other errors in my file)...
Expected behavior I expected the line
//lint:ignore mnd
to be ignored (I actually noticed this issue indirectly by revive via golangci-lint but was able to reproduce with revive directly).Logs
Desktop (please complete the following information):
go version go1.22.4 darwin/arm64
Additional context Add any other context about the problem here.
I also tried modifying the config to use
arguments = ["lint:"]
rather thanarguments = ["lint:ignore"]
but that also didn't help.