code.tool.measure.common

*config*

dynamic

calculate-surface

(calculate-surface base height)

Calculates the ‘surface area’ of the code using a Code City metaphor. Base Area (Width) = Total Node Count (Size) Height = Structural Complexity Score Surface = Base + 4 * (sqrt(Base) * Height) (Represents top surface + 4 side walls of a square tower)

get-file-content

(get-file-content repo-path sha file-path)

list-commits

(list-commits repo-path)

list-files

(list-files repo-path sha)

sh-git

(sh-git args repo-path)