aws-samples / query-data-in-s3-with-amazon-athena-and-aws-sdk-for-dotnet
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 60 units with 741 lines of code in units (50.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 11 medium size units (303 lines of code)
    • 15 small units (231 lines of code)
    • 34 very small units (207 lines of code)
0% | 0% | 40% | 31% | 27%
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% | 40% | 38% | 21%
cs0% | 0% | 42% | 18% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp0% | 0% | 40% | 38% | 21%
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions0% | 0% | 56% | 43% | 0%
app/AthenaNetCore/AthenaNetCore.WebApp0% | 0% | 53% | 0% | 46%
app/AthenaNetCore/AthenaNetCore.WebApp/Controllers0% | 0% | 72% | 0% | 27%
app/AthenaNetCore/AthenaNetCore.BusinessLogicTests/Repositories0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Repositories0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.WebApp/Pages0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Entities0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private static T ProcessRow()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
44 13 2
renderGridTable()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
32 1 1
renderGridTable()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
32 1 1
renderHospitalsTable()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/Hospitals.js
30 1 1
renderHospitalsTable()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
30 1 1
public void Configure()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/Startup.cs
28 3 2
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
22 3 0
function checkValidServiceWorker()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
22 3 1
function registerValidSW()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
21 3 1
public async Task HospitalsStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/Controllers/CovidTrackingController.cs
21 2 1
public static async Task IsTheQueryStillRunning()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
21 4 2
private static async Task WaitForQueryToComplete()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
20 6 3
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
18 2 1
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
18 2 1
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
18 3 0
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
18 2 1
private static IReadOnlyDictionary MapColumnsPositions()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
18 4 2
constructor()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
17 1 1
export default function register()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
16 5 0
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
15 4 0