microsoft / vscode-azurestorage
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 363 units with 3,668 lines of code in units (38.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (285 lines of code)
    • 31 simple units (777 lines of code)
    • 326 very simple units (2,606 lines of code)
0% | 0% | 7% | 21% | 71%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
ts0% | 0% | 7% | 21% | 70%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/commands0% | 0% | 37% | 26% | 36%
src0% | 0% | 16% | 28% | 54%
src/commands/azCopy0% | 0% | 33% | 48% | 17%
src/utils0% | 0% | 0% | 17% | 82%
src/tree/blob0% | 0% | 0% | 21% | 78%
src/tree0% | 0% | 0% | 17% | 82%
src/tree/queue0% | 0% | 0% | 45% | 54%
src/tree/createWizard0% | 0% | 0% | 22% | 77%
src/storageExplorerLauncher0% | 0% | 0% | 19% | 80%
src/tree/fileShare0% | 0% | 0% | 8% | 91%
src/tree/table0% | 0% | 0% | 18% | 81%
src/commands/blob0% | 0% | 0% | 0% | 100%
src/commands/fileShare0% | 0% | 0% | 0% | 100%
src/commands/openInFileExplorer0% | 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%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export async function uploadToAzureStorage()
in src/commands/uploadToAzureStorage.ts
66 20 3
function handleJob()
in src/commands/azCopy/azCopyTransfer.ts
36 17 3
56 16 2
async stat()
in src/AzureStorageFS.ts
25 13 1
export async function uploadFolder()
in src/commands/uploadFolder.ts
49 13 6
export async function uploadFiles()
in src/commands/uploadFiles.ts
53 11 6
private async lookupBlobContainer()
in src/AzureStorageFS.ts
35 10 5
async function getAzCopyDownloads()
in src/commands/downloadFile.ts
37 10 3
public async createChildImpl()
in src/tree/SubscriptionTreeItem.ts
48 10 1
async function startAndWaitForTransfer()
in src/commands/azCopy/azCopyTransfer.ts
29 9 6
50 9 3
export async function deployStaticWebsite()
in src/commands/storageAccountActionHandlers.ts
32 8 2
async function uploadFilesHelper()
in src/commands/uploadFiles.ts
40 8 7
async readDirectory()
in src/AzureStorageFS.ts
21 7 1
async readFile()
in src/AzureStorageFS.ts
28 7 1
19 7 2
private verifyUri()
in src/AzureStorageFS.ts
21 7 2
export function createAzCopyRemoteLocation()
in src/commands/azCopy/azCopyLocations.ts
22 7 3
private validateConnectionString()
in src/tree/AttachedStorageAccountsTreeItem.ts
18 7 1
public async browseStaticWebsite()
in src/tree/StorageAccountTreeItem.ts
29 7 1