aws-quickstart / quickstart-bim360-integration
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 66 units with 566 lines of code in units (27.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (125 lines of code)
    • 18 small units (244 lines of code)
    • 44 very small units (197 lines of code)
0% | 0% | 22% | 43% | 34%
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% | 31% | 30% | 38%
cs0% | 0% | 0% | 72% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
packages/forge-viewhubs-nodejs-aws/routes0% | 0% | 48% | 48% | 3%
packages/forge-viewhubs-netcore-aws/wwwroot/js0% | 0% | 34% | 21% | 43%
packages/forge-viewhubs-nodejs-aws/public/js0% | 0% | 34% | 21% | 43%
packages/forge-viewhubs-netcore-aws/Controllers0% | 0% | 0% | 76% | 23%
packages/forge-viewhubs-netcore-aws0% | 0% | 0% | 55% | 44%
packages/forge-viewhubs-nodejs-aws0% | 0% | 0% | 50% | 50%
packages/forge-viewhubs-nodejs-aws/routes/common0% | 0% | 0% | 25% | 75%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function prepareUserHubsTree()
in packages/forge-viewhubs-netcore-aws/wwwroot/js/ForgeTree.js
40 6 0
function prepareUserHubsTree()
in packages/forge-viewhubs-nodejs-aws/public/js/ForgeTree.js
40 6 0
async function getHubs()
in packages/forge-viewhubs-nodejs-aws/routes/datamanagement.js
24 4 3
async function getProjects()
in packages/forge-viewhubs-nodejs-aws/routes/datamanagement.js
21 3 4
async function getFolderContents()
in packages/forge-viewhubs-nodejs-aws/routes/datamanagement.js
18 3 5
public static async Task CreateFromCodeAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
17 1 2
public async Task GetUserProfileAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/UserController.cs
15 2 0
public static async Task GetForgeKeysSSM()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
15 2 1
public void Configure()
in packages/forge-viewhubs-netcore-aws/Startup.cs
15 2 2
async function getVersions()
in packages/forge-viewhubs-nodejs-aws/routes/datamanagement.js
15 4 5
public async Task GetPublicTokenAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
14 2 0
private async Task RefreshAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
14 1 0
function launchViewer()
in packages/forge-viewhubs-netcore-aws/wwwroot/js/ForgeViewer.js
13 2 2
function launchViewer()
in packages/forge-viewhubs-nodejs-aws/public/js/ForgeViewer.js
13 2 2
"": function()
in packages/forge-viewhubs-netcore-aws/wwwroot/js/ForgeTree.js
12 6 2
public async Task GetOAuthURLAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
12 1 1
public static async Task FromSessionAsync()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
12 4 2
public static async Task GetAppSetting()
in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs
12 3 1
getParamStore: function()
in packages/forge-viewhubs-nodejs-aws/config.js
12 2 0
"": function()
in packages/forge-viewhubs-nodejs-aws/public/js/ForgeTree.js
12 6 2