microsoft / vscode-azurestorage
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 363 units with 3,668 lines of code in units (38.8% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (260 lines of code)
    • 41 medium size units (1,149 lines of code)
    • 67 small units (990 lines of code)
    • 251 very small units (1,269 lines of code)
0% | 7% | 31% | 26% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 7% | 31% | 27% | 34%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 28% | 26% | 28% | 16%
src/commands0% | 26% | 45% | 6% | 20%
src/tree/blob0% | 0% | 38% | 29% | 31%
src/utils0% | 0% | 24% | 23% | 52%
src/tree/fileShare0% | 0% | 42% | 30% | 26%
src/tree0% | 0% | 20% | 44% | 35%
src/commands/azCopy0% | 0% | 82% | 12% | 5%
src/tree/queue0% | 0% | 45% | 27% | 27%
src/storageExplorerLauncher0% | 0% | 37% | 51% | 10%
src/tree/createWizard0% | 0% | 16% | 22% | 61%
src/commands/blob0% | 0% | 47% | 0% | 52%
src/tree/table0% | 0% | 20% | 49% | 30%
src/commands/openInFileExplorer0% | 0% | 0% | 46% | 53%
src/commands/fileShare0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/commands/queue0% | 0% | 0% | 0% | 100%
src/commands/table0% | 0% | 0% | 0% | 100%
src/commands/api0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
85 5 2
export async function uploadToAzureStorage()
in src/commands/uploadToAzureStorage.ts
66 20 3
56 16 2
export async function uploadFiles()
in src/commands/uploadFiles.ts
53 11 6
50 9 3
export async function uploadFolder()
in src/commands/uploadFolder.ts
49 13 6
public async createChildImpl()
in src/tree/SubscriptionTreeItem.ts
48 10 1
async function uploadFilesHelper()
in src/commands/uploadFiles.ts
40 8 7
40 5 4
async function getAzCopyDownloads()
in src/commands/downloadFile.ts
37 10 3
function handleJob()
in src/commands/azCopy/azCopyTransfer.ts
36 17 3
private async lookupBlobContainer()
in src/AzureStorageFS.ts
35 10 5
export async function deployStaticWebsite()
in src/commands/storageAccountActionHandlers.ts
32 8 2
private createRoot()
in src/tree/StorageAccountTreeItem.ts
30 1 0
private async deployStaticWebsiteCore()
in src/tree/blob/BlobContainerTreeItem.ts
30 5 5
async function startAndWaitForTransfer()
in src/commands/azCopy/azCopyTransfer.ts
29 9 6
public async browseStaticWebsite()
in src/tree/StorageAccountTreeItem.ts
29 7 1
private async deleteBlobs()
in src/tree/blob/BlobContainerTreeItem.ts
29 6 5
async loadMoreChildrenImpl()
in src/tree/queue/QueueGroupTreeItem.ts
29 7 1
async readFile()
in src/AzureStorageFS.ts
28 7 1