microsoft / PowerBI-visuals-TableSorter
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 118 units with 1,676 lines of code in units (54.2% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (147 lines of code)
    • 26 medium size units (809 lines of code)
    • 30 small units (412 lines of code)
    • 60 very small units (308 lines of code)
0% | 8% | 48% | 24% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 8% | 47% | 25% | 18%
js0% | 0% | 68% | 0% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
tablesorter/src/providers0% | 61% | 14% | 8% | 14%
tablesorter-powerbi/src0% | 7% | 72% | 12% | 8%
tablesorter/src0% | 0% | 36% | 42% | 21%
tablesorter/src/templates0% | 0% | 100% | 0% | 0%
tablesorter-powerbi0% | 0% | 88% | 0% | 12%
tablesorter/src/spec0% | 0% | 0% | 70% | 29%
tablesorter-powerbi/src/settings0% | 0% | 0% | 36% | 63%
tablesorter-powerbi/base0% | 0% | 0% | 0% | 100%
tablesorter/src/base0% | 0% | 0% | 0% | 100%
tablesorter-powerbi/scripts0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private getFilteredData()
in packages/tablesorter/src/providers/JSONDataProvider.ts
91 31 1
export default function converter()
in packages/tablesorter-powerbi/src/dataConversion.ts
56 5 4
export function dateTimeFormatCalculator()
in packages/tablesorter-powerbi/src/Utils.ts
48 35 0
public constructor()
in packages/tablesorter-powerbi/src/TableSorterVisual.ts
46 12 4
function removeMissingColumns()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
41 11 2
export function syncLayoutColumns()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
40 12 3
export default function()
in packages/tablesorter/src/templates/tablesorter.tmpl.ts
40 1 0
export default function()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
39 9 5
private cellFormatter()
in packages/tablesorter-powerbi/src/TableSorterVisual.ts
34 18 1
private loadDataFromPowerBI()
in packages/tablesorter-powerbi/src/TableSorterVisual.ts
33 4 2
private runQuery()
in packages/tablesorter/src/TableSorter.ts
33 9 1
private loadSettingsFromPowerBI()
in packages/tablesorter-powerbi/src/TableSorterVisual.ts
32 12 2
private onLineUpFiltered()
in packages/tablesorter/src/TableSorter.ts
32 7 1
export function convertConfiguration()
in packages/tablesorter/src/conversion.ts
32 6 2
function updateRankingColumns()
in packages/tablesorter-powerbi/src/TableSorterVisual.ts
31 9 2
export function processExistingConfig()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
29 12 2
export function calculateRankingInfo()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
29 8 1
addToCalculation()
in packages/tablesorter-powerbi/src/Utils.ts
28 11 1
export function convertFilterFromDesc()
in packages/tablesorter/src/conversion.ts
28 8 1
function parseRankColumns()
in packages/tablesorter-powerbi/src/ConfigBuilder.ts
27 5 3