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

adds `comments-density` rule #979

Closed chavacava closed 2 months ago

chavacava commented 2 months ago

This PR adds a new rule comments-density. The rule is inspired on the SonarQube rule on the comment lines density metric

The default argument value of the rule is 0, i.e. the rule is de-facto deactivated, to avoid polluting analysis of those using enableAllRules = true in the configuration.

denisvmedia commented 2 months ago

I'd happily review it tomorrow evening (PRG time).

Thanks for the PR!