mvdan / gofumpt

A stricter gofmt
https://pkg.go.dev/mvdan.cc/gofumpt
BSD 3-Clause "New" or "Revised" License
3.15k stars 110 forks source link

Don't add whitespaceto //NOSONAR comments #268

Closed MrSpoony closed 1 year ago

MrSpoony commented 1 year ago

When using sonarqube, the //NOSONAR can be used to disable SONAR parsing for this line on false-positives.

See here.

This only works if there is no space between the slashes and the NOSONAR.

Just another exception to the rule :)

mvdan commented 1 year ago

Sigh, yet another one that doesn't care about the standard :) Thanks for the patch.