Measure program complexity

Proprietary

Measure size and complexity per program: source and comment lines as written and with copybooks inlined, McCabe cyclomatic complexity, statement and paragraph counts, copybook and call coupling, Halstead volume and a maintainability index. The point is triage — which of several thousand programs are the risky, expensive ones, and which are small enough to move without ceremony. Programs crossing thresholds drawn from published operating experience are flagged.

io.moderne.mainframe.analysis.FindProgramComplexity
mod run . --recipe=io.moderne.mainframe.analysis.FindProgramComplexity

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.