microsoft / vscode-service-fabric-reliable-services
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 75 units with 950 lines of code in units (82.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 13 medium size units (384 lines of code)
    • 21 small units (312 lines of code)
    • 41 very small units (254 lines of code)
0% | 0% | 40% | 32% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 40% | 32% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/yo/yo0% | 0% | 64% | 9% | 25%
src/yo/prompts0% | 0% | 47% | 38% | 13%
src/yo0% | 0% | 68% | 12% | 18%
src/commands0% | 0% | 18% | 43% | 38%
src/yo/utils0% | 0% | 100% | 0% | 0%
src/configureWorkspace0% | 0% | 0% | 100% | 0%
src0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
45 11 1
public run()
in src/yo/yo/yo.ts
40 5 2
function list()
in src/yo/index.ts
32 6 1
public getGenerators()
in src/yo/yo/yo.ts
32 6 0
export async function buildCSharpApplication()
in src/commands/build-application.ts
28 3 1
public prompt()
in src/yo/yo/adapter.ts
28 6 2
async function createPublishProfile()
in src/commands/build-application.ts
27 3 0
public render()
in src/yo/prompts/checkbox.ts
27 5 0
public render()
in src/yo/prompts/input.ts
27 8 0
const getNpmPaths = function()
in src/yo/yo/environment.ts
27 6 0
public render()
in src/yo/prompts/list.ts
25 3 0
export default function()
in src/yo/utils/run-async.ts
25 2 1
async function readCloudProfile()
in src/commands/publish-application.ts
21 5 0
async function deployToUnsecureCluster()
in src/commands/publish-application.ts
20 8 1
async function connectToCluster()
in src/commands/remove-application.ts
20 3 0
async function connectToUnsecureCluster()
in src/commands/remove-application.ts
20 8 1
async function deployToUnsecureCluster()
in src/commands/upgrade-application.ts
20 8 2
public static createPrompt()
in src/yo/prompts/factory.ts
19 10 2
public diff()
in src/yo/yo/adapter.ts
19 4 2
export async function buildApplication()
in src/commands/build-application.ts
17 5 0