Code Health version change: Clojure 6.1
The following changes have been made:
Clojure: no more false Large Method findings on documented data vars
A
defwith a docstring and a data value, such as(def name "docstring" [...])with a long vector, map or set, was analysed as a function. This gave false findings like Large Method on constant tables. These forms are now treated as plain vars, the same as when there is no docstring. Functions defined withdefn,defn-andfnare analysed as before.Code Health scores may change: Clojure files with long documented
defs can score higher. Cached Clojure scores are recalculated on the next analysis, which can take longer on large Clojure codebases.
Scores can therefore shift slightly even though your code has not changed.
Because of this change, the stored Code Health results for the affected languages need to be recalculated. This may cause the next analysis of your projects to take longer to complete than usual. Following analyses will be back to normal.