microsoft / service-fabric-backup-explorer
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 224 units with 2,109 lines of code in units (66.6% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (251 lines of code)
    • 24 medium size units (717 lines of code)
    • 27 small units (406 lines of code)
    • 169 very small units (735 lines of code)
0% | 11% | 33% | 19% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 15% | 41% | 13% | 29%
cs0% | 6% | 21% | 28% | 43%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/backup-explorer-cli/bkpctl/swagger_client0% | 16% | 43% | 13% | 26%
src/BackupExplorer/Parser0% | 12% | 11% | 29% | 46%
src/BackupExplorer/RestServer0% | 0% | 29% | 33% | 37%
src/BackupExplorer/RestServer/Controllers0% | 0% | 46% | 11% | 42%
src/backup-explorer-cli/bkpctl0% | 0% | 25% | 13% | 61%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def request()
in src/backup-explorer-cli/bkpctl/swagger_client/rest.py
81 23 9
def request()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
59 8 9
internal void OnStateManagerChanged()
in src/BackupExplorer/Parser/TransactionChangeManager.cs
57 9 2
def __call_api()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
54 14 15
def api_backup_full_post_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
47 6 3
def api_backup_incremental_post_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
47 6 3
def query_post_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
47 6 3
def query_dictionary_name_get_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
45 6 3
def api_transactions_get_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
40 3 2
def querymetadata_get_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
40 3 2
def __init__()
in src/backup-explorer-cli/bkpctl/swagger_client/rest.py
38 8 4
private Assembly CodePackageAssemblyResolveHandler()
in src/BackupExplorer/Parser/CodePackageInfo.cs
29 5 2
private async Task TakeBackup()
in src/BackupExplorer/RestServer/Controllers/BackupController.cs
28 4 2
def load_command_table()
in src/backup-explorer-cli/bkpctl/commands.py
28 1 2
internal static async Task CopyDirectory()
in src/BackupExplorer/RestServer/Controllers/Utilities.cs
26 5 2
def __deserialize()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
26 12 3
public async Task GetOrAddAsync()
in src/BackupExplorer/Parser/StateManager.cs
25 3 3
private BackupParserManager SetupBackupParserManagerAndStartParsing()
in src/BackupExplorer/RestServer/BackupWebHost.cs
24 3 0
internal void ValidateAndSetDefaultValues()
in src/BackupExplorer/RestServer/BackupChainInfo.cs
23 6 0
def call_api()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
23 2 16