mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 269 forks source link

Fix #808 #986

Closed chavacava closed 1 month ago

chavacava commented 1 month ago

Closes #808 by ignoring comments matching the official pattern for directives

ccoVeille commented 1 month ago

For reference, here is what is implemented in gofumpt

https://github.com/mvdan/gofumpt/blob/master/format%2Fformat.go#L334

They use a slightly different regexp

You can look at historical changes, it gives context