microsoft / angular2-slickgrid
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 36 units with 340 lines of code in units (32.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (54 lines of code)
    • 2 medium size units (67 lines of code)
    • 6 small units (82 lines of code)
    • 27 very small units (137 lines of code)
0% | 15% | 19% | 24% | 40%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 15% | 19% | 24% | 40%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
components/js0% | 15% | 19% | 24% | 40%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
54 6 1
private initGrid()
in components/js/slickGrid.ts
44 8 0
private setupEvents()
in components/js/slickGrid.ts
23 2 0
public set selection()
in components/js/slickGrid.ts
18 6 1
private static areRangesIdentical()
in components/js/selectionModel.ts
14 10 2
constructor()
in components/js/slickGrid.ts
14 5 1
private getColumnEditor()
in components/js/slickGrid.ts
12 6 1
private renderGridDataRowsRange()
in components/js/slickGrid.ts
12 8 2
private _placeHolderGenerator:()
in components/js/virtualizedCollection.ts
12 2 1
private updateSelectedRanges()
in components/js/selectionModel.ts
10 7 1
public registerPlugin()
in components/js/slickGrid.ts
10 5 1
private setCallbackOnDataRowsChanged()
in components/js/slickGrid.ts
10 3 0
private getDataFromCurrent()
in components/js/virtualizedCollection.ts
10 4 1
private get isColumnSelectionCurrently()
in components/js/selectionModel.ts
9 5 0
private changeEditSession()
in components/js/slickGrid.ts
7 1 1
private getRangeFromCurrent()
in components/js/virtualizedCollection.ts
7 2 2
constructor()
in components/js/slickGrid.ts
6 1 1
public getSelectedRanges()
in components/js/slickGrid.ts
6 3 0
private updateSchema()
in components/js/slickGrid.ts
6 2 0
private getColumnRangeByIndex()
in components/js/selectionModel.ts
5 2 1