aws-robotics / aws-robomaker-github-actions
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 13 units with 133 lines of code in units (71.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (34 lines of code)
    • 4 small units (61 lines of code)
    • 8 very small units (38 lines of code)
0% | 0% | 25% | 45% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 25% | 45% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
robomaker-sample-app-ci/src0% | 0% | 25% | 45% | 28%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
async function run()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
34 7 0
function getExecOptions()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
18 3 3
async function loadROSEnvVariables()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
15 3 0
async function setup()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
14 2 0
async function prepare_sources()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
14 1 0
async function getSampleAppVersion()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
10 1 0
async function fetchRosinstallDependencies()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
7 3 0
async function bundle()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
6 1 0
function delay()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
3 1 1
function getWorkingDirExecOptions()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
3 1 1
function getWorkingDirParentExecOptions()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
3 1 1
async function build()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
3 1 0
async function installPyparsing()
in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts
3 1 0