src-d / lookout-gometalint-analyzer

GNU Affero General Public License v3.0
1 stars 5 forks source link

add gocyclo linter #28

Closed smacker closed 5 years ago

smacker commented 5 years ago

It is file-level linter. And a useful one.

carlosms commented 5 years ago

what kind of comments will it produce? Is there a default threshold, or will it comment on every function even if the complexity is within the "normal" range?

smacker commented 5 years ago
warning: cyclomatic complexity 12 of function (*Server).concurrentRequest() is high (> 10) (gocyclo)

The default is 10 which I think very sane.