mgechev / revive

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

Adds rule `max-control-nesting` #967

Closed chavacava closed 8 months ago

chavacava commented 8 months ago

This PR adds rule max-control-nesting, the GO implementation of https://sonarsource.atlassian.net/browse/RSPEC-134

denisvmedia commented 8 months ago

Thanks for the new rule @chavacava.

What about select/case - should we (do we?) support it as well?

Another thing: can we have test cases for the code placed in closures?