microsoft / AzureKeyVaultExplorer
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 425 units with 5,658 lines of code in units (64.6% of code).
    • 5 very long units (1,222 lines of code)
    • 4 long units (301 lines of code)
    • 44 medium size units (1,235 lines of code)
    • 95 small units (1,390 lines of code)
    • 277 very small units (1,510 lines of code)
21% | 5% | 21% | 24% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs21% | 5% | 21% | 24% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Vault/Explorer26% | 6% | 20% | 25% | 21%
Vault/Library0% | 0% | 39% | 26% | 33%
Vault/Core0% | 0% | 6% | 12% | 81%
Vault/ClearClipboard0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void InitializeComponent()
in Vault/Explorer/MainForm.Designer.cs
581 1 0
private void InitializeComponent()
in Vault/Explorer/SubscriptionsManagerDialog.Designer.cs
212 1 0
private void InitializeComponent()
in Vault/Explorer/SettingsDialog.Designer.cs
184 1 0
private void InitializeComponent()
in Vault/Explorer/ItemDialogBase.Designer.cs
127 1 0
private void InitializeComponent()
in Vault/Explorer/SecretDialog.Designer.cs
118 1 0
private void InitializeComponent()
in Vault/Explorer/ExceptionDialog.Designer.cs
76 1 0
private void InitializeComponent()
in Vault/Explorer/ListViewSecrets.Designer.cs
75 1 0
75 7 2
private void InitializeComponent()
in Vault/Explorer/PasswordDialog.Designer.cs
75 1 0
private void InitializeComponent()
in Vault/Explorer/CertificateDialog.Designer.cs
40 1 0
public static ContentType FromExtension()
in Vault/Explorer/ContentType.cs
39 19 1
private async void uxComboBoxAccounts_SelectedIndexChanged()
in Vault/Explorer/SubscriptionsManagerDialog.cs
38 6 2
public static string FromRawValue()
in Vault/Explorer/ContentType.cs
37 16 2
public static string ToRawValue()
in Vault/Explorer/ContentType.cs
36 16 2
36 8 2
private bool SetCurrentVaultAlias()
in Vault/Explorer/MainForm.cs
35 9 0
private async void uxButtonEdit_Click()
in Vault/Explorer/MainForm.cs
34 8 2
private void AutoDetectSecretKind()
in Vault/Explorer/SecretDialog.cs
34 10 0
public static string ToExtension()
in Vault/Explorer/ContentType.cs
33 15 1
public SecretDialog()
in Vault/Explorer/SecretDialog.cs
33 6 2