microsoft / painless-config-resolver
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 42 units with 656 lines of code in units (84.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 11 medium size units (372 lines of code)
    • 9 small units (136 lines of code)
    • 22 very small units (148 lines of code)
0% | 0% | 56% | 20% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 56% | 20% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib0% | 0% | 56% | 20% | 22%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function initialize()
in lib/painlessConfigAsCode.js
50 25 1
function wrapClient()
in lib/keyVaultConfigurationResolver.js
43 8 1
resolveObjectVariables: async()
in lib/environmentConfigurationResolver.js
41 19 1
function createAndWrapKeyVaultClient()
in lib/keyVaultConfigurationResolver.js
41 12 1
function configurePackageEnvironments()
in lib/painlessConfigAsCode.js
39 12 4
async function composeGraphs()
in lib/multiGraphBuilder.js
31 13 1
function addConfigPackage()
in lib/multiGraphBuilder.js
31 7 3
function getSecret()
in lib/keyVaultConfigurationResolver.js
30 6 4
function identifyPaths()
in lib/environmentConfigurationResolver.js
24 7 2
21 3 1
async function identifyPaths()
in lib/volumeConfigurationResolver.js
21 6 3
20 7 1
function identifyKeyVaultValuePaths()
in lib/keyVaultConfigurationResolver.js
20 6 2
function addAppConfigDirectory()
in lib/multiGraphBuilder.js
20 6 4
15 5 3
resolveVolumeFiles: async()
in lib/volumeConfigurationResolver.js
14 3 1
async function resolveVolumeFile()
in lib/volumeConfigurationResolver.js
13 3 2
async function resolveIfNeeded()
in lib/keyVaultConfigurationResolver.js
12 7 0
function getUrlIfEnvironmentVariable()
in lib/environmentConfigurationResolver.js
11 3 1
function getUrlIfVault()
in lib/keyVaultConfigurationResolver.js
11 3 1