d3an / finviz

Go API for Finviz
https://github.com/d3an/finviz/wiki
MIT License
20 stars 3 forks source link

Switch out gocyclo for gocognit #37

Closed d3an closed 4 years ago

d3an commented 4 years ago

Both gocyclo and gocognit calculate code complexities, but according to popular review, gocognit uses better logic (ex. switch statement with 18 branches is +1 in gocognit and +19 in gocyclo) and makes more reasonable estimates. As a bonus, gocognit has been updated more recently than gocyclo.