microsoft / wiql-to-odata-ado-extension
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 56 units with 653 lines of code in units (57.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 9 medium size units (292 lines of code)
    • 12 small units (170 lines of code)
    • 35 very small units (191 lines of code)
0% | 0% | 44% | 26% | 29%
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% | 42% | 27% | 29%
tsx0% | 0% | 61% | 14% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/parsers0% | 0% | 48% | 27% | 24%
src/dialog0% | 0% | 53% | 26% | 19%
src/helpers0% | 0% | 63% | 0% | 36%
src/app0% | 0% | 65% | 34% | 0%
src0% | 0% | 0% | 59% | 40%
src/models0% | 0% | 0% | 18% | 81%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public render()
in src/dialog/dialog.tsx
47 5 0
public async getODataUrl()
in src/dialog/dialog-helper.ts
41 10 0
private odataExpressionFromValue()
in src/parsers/clause-parsers.ts
39 10 2
public makeSelectAndExpandStatement()
in src/parsers/odata-parser.ts
37 8 0
export function parseQueryJson()
in src/helpers/query-json-parser.ts
35 9 1
25 1 1
public makeOrderByStatement()
in src/parsers/odata-parser.ts
24 9 0
public parseClause()
in src/parsers/clause-parsers.ts
22 10 1
public makeAllStatements()
in src/parsers/odata-parser.ts
22 3 0
value: function()
in src/polyfills.ts
19 6 2
private async getQueryTemp()
in src/dialog/dialog-helper.ts
16 2 0
private async getODataMetadata()
in src/dialog/dialog-helper.ts
16 2 0
16 4 0
public makeFilterStatement()
in src/parsers/odata-parser.ts
16 3 2
public makeFilterStatementForOneHop()
in src/parsers/odata-parser.ts
15 7 0
action: async()
in src/app/app.ts
13 4 1
private parseIn()
in src/parsers/clause-parsers.ts
13 3 1
private static parseEntitySet()
in src/models/odata-metadata.ts
12 1 1
private odataExpressionFromField()
in src/parsers/clause-parsers.ts
12 5 1
public async componentDidMount()
in src/dialog/dialog.tsx
11 1 0