microsoft / process-migrator
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 72 units with 1,141 lines of code in units (79.5% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (283 lines of code)
    • 11 medium size units (360 lines of code)
    • 18 small units (282 lines of code)
    • 39 very small units (216 lines of code)
0% | 24% | 31% | 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% | 24% | 31% | 24% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Common0% | 27% | 32% | 23% | 16%
NodeJs0% | 0% | 27% | 34% | 37%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private async _getComponents()
in src/Common/ProcessExporter.ts
92 6 1
private async _importOtherGroupsAndControls()
in src/Common/ProcessImporter.ts
75 24 3
private async _importWITStates()
in src/Common/ProcessImporter.ts
63 25 2
private async _importPicklists()
in src/Common/ProcessImporter.ts
53 25 1
private async _importBehaviors()
in src/Common/ProcessImporter.ts
49 10 1
public static validateConfiguration()
in src/Common/Utilities.ts
47 33 2
private async _getFieldsToCreate()
in src/Common/ProcessImporter.ts
41 10 1
private async _addFieldsToWorkItemTypes()
in src/Common/ProcessImporter.ts
37 12 1
private async _validatePicklists()
in src/Common/ProcessImporter.ts
36 11 1
export function ProcesCommandLine()
in src/NodeJs/ConfigurationProcessor.ts
36 7 0
private async _importPage()
in src/Common/ProcessImporter.ts
28 9 4
private async _editGroup()
in src/Common/ProcessImporter.ts
22 5 6
private async _validateFields()
in src/Common/ProcessImporter.ts
22 8 1
private async _createGroup()
in src/Common/ProcessImporter.ts
21 5 5
public async importProcess()
in src/Common/ProcessImporter.ts
21 5 1
private async _importFields()
in src/Common/ProcessImporter.ts
20 7 1
private async _addBehaviorsToWorkItemTypes()
in src/Common/ProcessImporter.ts
20 8 1
20 16 2
private async _importWITRule()
in src/Common/ProcessImporter.ts
19 6 3
export async function ProcessConfigurationFile()
in src/NodeJs/ConfigurationProcessor.ts
19 6 1