microsoft / vsts-tomcat
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 20 units with 141 lines of code in units (75.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 3 small units (44 lines of code)
    • 17 very small units (97 lines of code)
0% | 0% | 0% | 31% | 68%
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% | 0% | 55% | 44%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/tasks/tomcatDeployment0% | 0% | 0% | 55% | 44%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function execCurlCmdForDeployingWar()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
17 2 1
export function getTargetUrlForDeployingWar()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
15 4 4
export function getCurlCmdForDeployingWar()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
12 2 4
10 2 2
export function deployWarFile()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
10 1 6
export function deploy()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
9 1 0
8 1 1
function compile()
in gulpfile.js
7 1 0
7 1 0
6 1 0
export function getTomcatResponseOutputFileName()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
6 2 0
function lint()
in gulpfile.js
5 1 0
function build()
in gulpfile.js
4 1 0
function test()
in gulpfile.js
4 1 0
executeCommand()
in gulpfile.js
4 1 2
4 1 0
export function getCurlPath()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
4 1 0
function clean()
in gulpfile.js
3 1 0
export function getTomcatResponse()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
3 1 0
export function cleanTomcatResponseOutputFile()
in src/tasks/tomcatDeployment/tomcatDeployment.ts
3 1 0