This document outlines the definition of file metrics for Ruby.
The "complexity" metric counts:
if
andelsif
statementsfor...
,<array>.each do ...
,while...
anduntil...
loopswhen ...
labels in case-statementsrescue
labels inbegin ... rescue ...
blocks- everything counted for the "functions" metric
The "functions" metric counts:
- method and function definitions:
def ...
- lambda functions:
->(x) { ... }
The "classes" metric counts:
- class definitions:
class ...
see README.md