microsoft / FastTrack
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 23 units with 274 lines of code in units (5.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (108 lines of code)
    • 5 small units (80 lines of code)
    • 14 very small units (86 lines of code)
0% | 0% | 39% | 29% | 31%
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% | 39% | 29% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
tools/gsuite-scanner0% | 0% | 39% | 29% | 31%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function createFeedReader()
in tools/gsuite-scanner/src/data/feed-reader.ts
30 5 2
export async function outputCSV()
in tools/gsuite-scanner/src/output/csv.ts
29 2 2
export function sanitizeConfig()
in tools/gsuite-scanner/src/configuration.ts
28 6 1
export default()
in tools/gsuite-scanner/src/data/sites.ts
21 1 1
export function summarize()
in tools/gsuite-scanner/src/data/content.ts
19 3 2
export default()
in tools/gsuite-scanner/src/data/content.ts
18 3 1
export default async function()
in tools/gsuite-scanner/src/scan.ts
18 2 1
export function startLogging()
in tools/gsuite-scanner/src/log.ts
14 5 1
export async function writeOutput()
in tools/gsuite-scanner/src/output/index.ts
11 3 2
export async function read()
in tools/gsuite-scanner/src/data/feed-reader.ts
10 2 1
function doWrite()
in tools/gsuite-scanner/src/output/csv.ts
10 2 2
export function outputJSON()
in tools/gsuite-scanner/src/output/json.ts
10 2 2
export function getCredentialsBinder()
in tools/gsuite-scanner/src/auth.ts
8 1 1
export function logError()
in tools/gsuite-scanner/src/log.ts
8 2 1
export function log()
in tools/gsuite-scanner/src/log.ts
7 2 2
export default function()
in tools/gsuite-scanner/src/fetch.ts
6 3 2
function createFileLogger()
in tools/gsuite-scanner/src/log.ts
6 1 1
export function endLogging()
in tools/gsuite-scanner/src/log.ts
5 1 0
export function setProxyUrl()
in tools/gsuite-scanner/src/fetch.ts
4 1 1
export function gscan()
in tools/gsuite-scanner/src/api.ts
3 1 1