Run gramex complexity
on any Gramex app to measure the
Cyclomatic Complexity
of the code.
Here’s an example:
$ gramex complexity
py js gramex
0 121 345 2782
The columns are:
py
: Python code complexityjs
: JavaScript code complexitygramex
: Complexity of the Gramex codebase used by the projectThis is useful to see what % of the code re-uses Gramex code, and what % is custom code.
Put another way, without Gramex, the project would have a complexity of 122 + 345 + 2,782 = 3,249.
Gramex reduces 2,782 / 3,249 = 86% of the code.