microsoft / AzureDevOpsDemoGenerator
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 385 units with 9,494 lines of code in units (13.6% of code).
    • 14 very long units (2,148 lines of code)
    • 33 long units (2,180 lines of code)
    • 111 medium size units (3,416 lines of code)
    • 68 small units (1,015 lines of code)
    • 159 very small units (735 lines of code)
22% | 22% | 35% | 10% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs27% | 22% | 36% | 8% | 3%
js9% | 23% | 33% | 15% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/VstsDemoBuilder/Services36% | 31% | 23% | 7% | <1%
src/VstsRestAPI/WorkItemAndTracking39% | 23% | 35% | 0% | <1%
src/VstsDemoBuilder/Controllers26% | 23% | 30% | 8% | 10%
src/VstsDemoBuilder/Scripts14% | 19% | 33% | 11% | 21%
Report/html/search0% | 35% | 37% | 18% | 8%
src/VstsRestAPI/Extractor0% | 25% | 54% | 8% | 11%
src/VstsRestAPI/ProjectsAndTeams0% | 0% | 91% | 5% | 3%
src/VstsRestAPI/QueriesAndWidgets0% | 0% | 88% | 10% | <1%
src/VstsRestAPI/Git0% | 0% | 75% | 22% | 2%
src/VstsRestAPI/Wiki0% | 0% | 99% | 0% | <1%
src/VstsRestAPI/Queues0% | 0% | 98% | 0% | 1%
src/VstsRestAPI/Build0% | 0% | 96% | 0% | 3%
src/VstsRestAPI/Service0% | 0% | 96% | 0% | 3%
src/VstsRestAPI/TestManagement0% | 0% | 96% | 0% | 3%
src/VstsRestAPI/Release0% | 0% | 96% | 0% | 3%
src/VstsDemoBuilder/Models0% | 0% | 100% | 0% | 0%
src/VstsRestAPI/DeliveryPlans0% | 0% | 96% | 0% | 3%
Report/html0% | 0% | 20% | 70% | 8%
src/VstsRestAPI/DeploymentGRoup0% | 0% | 87% | 0% | 12%
src/VstsRestAPI/Services0% | 0% | 0% | 86% | 13%
src/VstsRestAPI0% | 0% | 0% | 100% | 0%
src/VstsDemoBuilder/App_Start0% | 0% | 0% | 53% | 46%
src/VstsDemoBuilder/Extensions0% | 0% | 0% | 70% | 29%
src/VstsDemoBuilder/ErrorHandler0% | 0% | 0% | 100% | 0%
src/VstsDemoBuilder/Content0% | 0% | 0% | 0% | 100%
src/VstsDemoBuilder0% | 0% | 0% | 0% | 100%
src/VstsRestAPI/ExtensionManagement0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void CreateQueryAndWidgets()
in src/VstsDemoBuilder/Services/ProjectService.cs
301 124 7
public bool ExportTeams()
in src/VstsDemoBuilder/Services/ExtractorService.cs
222 41 3
public void GetServiceEndpoints()
in src/VstsDemoBuilder/Services/ExtractorService.cs
171 30 1
public int GeneralizingGetReleaseDefinitions()
in src/VstsDemoBuilder/Services/ExtractorService.cs
166 28 1
public JsonResult CheckForInstalledExtensions()
in src/VstsDemoBuilder/Controllers/EnvironmentController.cs
157 34 4
$()
in src/VstsDemoBuilder/Scripts/AppScripts/create.js
140 21 1
private static int NormalPipeline()
in src/VstsDemoBuilder/Services/ExtractorService.cs
136 25 7
private void CreateTeams()
in src/VstsDemoBuilder/Services/ProjectService.cs
132 29 5
public ActionResult CreateProject()
in src/VstsDemoBuilder/Controllers/EnvironmentController.cs
131 27 0
public bool PrepareAndUpdateTarget()
in src/VstsRestAPI/WorkItemAndTracking/ImportWorkItems.cs
128 24 5
public bool UpdateWorkItemLinks()
in src/VstsRestAPI/WorkItemAndTracking/ImportWorkItems.cs
125 16 1
success: function()
in src/VstsDemoBuilder/Scripts/AppScripts/create.js
119 16 1
public bool UpdateWorkItemUsingByPassRules()
in src/VstsRestAPI/WorkItemAndTracking/WorkItem.cs
112 13 4
private void CreateServiceEndPoint()
in src/VstsDemoBuilder/Services/ProjectService.cs
108 23 3
public bool UpdateIterationDates()
in src/VstsRestAPI/WorkItemAndTracking/ClassificationNodes.cs
94 19 4
public ActionResult Verify()
in src/VstsDemoBuilder/Controllers/AccountController.cs
88 20 2
private bool CreateReleaseDefinition()
in src/VstsDemoBuilder/Services/ProjectService.cs
84 14 4
public void CreateProjetWiki()
in src/VstsDemoBuilder/Services/ProjectService.cs
80 14 3
success: function()
in src/VstsDemoBuilder/Scripts/AppScripts/Extractor.js
79 12 1
$()
in src/VstsDemoBuilder/Scripts/AppScripts/create.js
79 10 1