microsoft / vscode-azurelogicapps
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 415 units with 4,294 lines of code in units (77.0% of code).
    • 4 very long units (1,145 lines of code)
    • 4 long units (290 lines of code)
    • 20 medium size units (504 lines of code)
    • 66 small units (918 lines of code)
    • 321 very small units (1,437 lines of code)
26% | 6% | 11% | 21% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts26% | 6% | 11% | 21% | 33%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/utils/logic-app74% | 0% | 9% | 8% | 7%
src0% | 81% | 0% | 8% | 10%
src/utils/integration-account0% | 47% | 16% | 27% | 8%
src/commands/logic-app0% | 18% | 18% | 39% | 23%
src/wizard/integration-account0% | 0% | 24% | 48% | 26%
src/wizard/logic-app0% | 0% | 39% | 29% | 31%
src/tree/logic-app0% | 0% | 0% | 19% | 80%
src/commands/integration-account0% | 0% | 0% | 48% | 51%
src/utils0% | 0% | 0% | 34% | 65%
src/tree/integration-account0% | 0% | 0% | 6% | 93%
src/editors/integration-account0% | 0% | 0% | 0% | 100%
src/editors/logic-app0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function getWebviewContentForDesigner()
in src/utils/logic-app/designerUtils.ts
354 10 16
export function getWebviewContent()
in src/utils/logic-app/monitoringViewUtils.ts
325 4 8
function initialize()
in src/utils/logic-app/designerUtils.ts
304 16 2
function initialize()
in src/utils/logic-app/monitoringViewUtils.ts
162 9 2
84 3 2
81 1 2
export async function createNewAgreement()
in src/utils/integration-account/agreementUtils.ts
68 4 6
export async function openInDesigner()
in src/commands/logic-app/openInDesigner.ts
57 5 2
export async function openVersionInDesigner()
in src/commands/logic-app/openVersionInDesigner.ts
37 2 2
public async execute()
in src/wizard/logic-app/GenerateBuildDefinitionStep.ts
36 3 1
export async function runNewAgreementWizard()
in src/wizard/integration-account/agreements/createAgreementWizard.ts
29 1 3
export async function createBuildDefinition()
in src/wizard/logic-app/createBuildDefinition.ts
28 1 1
export function generateBuildDefinition()
in src/utils/logic-app/templateUtils.ts
27 1 1
export async function runNewPartnerWizard()
in src/wizard/integration-account/partners/createPartnerWizard.ts
26 1 3
async function getConnectionReferences()
in src/utils/logic-app/connectionReferenceUtils.ts
25 3 2
export async function runNewMapWizard()
in src/wizard/integration-account/maps/createMapWizard.ts
25 1 3
export async function createNewMap()
in src/utils/integration-account/mapUtils.ts
24 5 2
export function generateTemplateResource()
in src/utils/logic-app/templateUtils.ts
24 2 1
export async function runNewSchemaWizard()
in src/wizard/integration-account/schemas/createSchemaWizard.ts
24 1 3
export async function getCallbacks()
in src/utils/logic-app/callbackUtils.ts
23 1 4