mapillary / mapillary_vistas
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 22 units with 743 lines of code in units (82.3% of code).
    • 2 very long units (240 lines of code)
    • 2 long units (161 lines of code)
    • 7 medium size units (223 lines of code)
    • 7 small units (98 lines of code)
    • 4 very small units (21 lines of code)
32% | 21% | 30% | 13% | 2%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py32% | 21% | 30% | 13% | 2%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
mapillary_vistas/evaluation41% | 27% | 13% | 16% | <1%
mapillary_vistas/helpers0% | 0% | 85% | 0% | 14%
mapillary_vistas/tools0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 22 longest units
Unit# linesMcCabe index# params
133 18 3
107 22 2
97 22 3
64 15 4
47 8 2
32 10 3
31 1 0
31 7 3
31 5 3
27 3 5
24 6 3
18 4 3
15 2 4
15 4 3
14 5 4
13 3 1
12 1 3
11 2 4
10 1 6
7 3 1
2 1 1
2 1 2