Measure code complexity in clojure

There are several tools in Ruby for calculating code complexity, for example, cyclic complexity, ABC score, or flog, as described here: http://blog.codeclimate.com/blog/2013/08/07/deciphering-ruby-code-metrics/

Are there similar tools for calculating the complexity of functions and / or whole namespaces in clojure?

+6
source share
1 answer

Expand on my previous answer to a similar question: Homoiconicity in Clojure makes it pretty easy to calculate the basic complexity of code complexity.

However, I would not bother. The biggest sources of difficulty in Clojure starter programs come from the wrong things, not structurally complex things. For example, programmers coming from a language such as Ruby, which encourages unstructured mutation, are more likely to be native:

Interestingly, many of these errors can also be noted by automatic analysis.

+7
source

Source: https://habr.com/ru/post/1015582/


All Articles