aws-samples / dotnet-share-auth-cookie-between-monolith-and-modernized-apps
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 45 files with 18,895 lines of code.
    • 3 very long files (17,414 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (279 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 41 very small files (1,202 lines of code)
92% | 0% | 1% | 0% | 6%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
css99% | 0% | 0% | 0% | <1%
js100% | 0% | 0% | 0% | 0%
cs0% | 0% | 20% | 0% | 79%
cshtml0% | 0% | 0% | 0% | 100%
asax0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Legacy.Monolith/Content99% | 0% | 0% | 0% | <1%
Legacy.Monolith/Scripts100% | 0% | 0% | 0% | 0%
Modernized.Infrastructure0% | 0% | 78% | 0% | 21%
Legacy.Monolith/Controllers0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Views0% | 0% | 0% | 0% | 100%
Legacy.Monolith/App_Start0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA/Services0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Services0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB/Services0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer/Services0% | 0% | 0% | 0% | 100%
Legacy.Monolith0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA/Controllers0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB/Controllers0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Models0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Properties0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer/Error0% | 0% | 0% | 0% | 100%
Longest Files (Top 45)
File# lines# units
bootstrap.rtl.css
in Legacy.Monolith/Content
9104 -
bootstrap.bundle.js
in Legacy.Monolith/Scripts
4863 327
bootstrap.esm.js
in Legacy.Monolith/Scripts
3447 243
InfrastructureStack.cs
in Modernized.Infrastructure
279 12
AuthCookieValidation.cs
in Modernized.Lambda.Authorizer
92 4
Startup.cs
in Modernized.Backend.ServiceA
83 3
Startup.cs
in Modernized.Backend.ServiceB
83 3
InfrastructureConfigs.cs
in Modernized.Infrastructure
59 -
AuthController.cs
in Legacy.Monolith/Controllers
59 4
ModernizedServiceCController.cs
in Legacy.Monolith/Controllers
58 2
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Backend.ServiceA/Services
55 4
CustomPersistKeysToAWSParameterStore.cs
in Legacy.Monolith/Services
55 3
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Backend.ServiceB/Services
55 4
Startup.Auth.cs
in Legacy.Monolith/App_Start
54 1
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Lambda.Authorizer/Services
48 3
cshtml
_Layout.cshtml
in Legacy.Monolith/Views/Shared
39 -
ModernizedServiceAController.cs
in Legacy.Monolith/Controllers
34 1
ModernizedServiceBController.cs
in Legacy.Monolith/Controllers
34 1
ServiceAController.cs
in Modernized.Backend.ServiceA/Controllers
27 2
ServiceBController.cs
in Modernized.Backend.ServiceB/Controllers
27 2
Program.cs
in Modernized.Backend.ServiceA
24 2
Program.cs
in Modernized.Backend.ServiceB
24 2
cshtml
Index.cshtml
in Legacy.Monolith/Views/Home
22 -
BundleConfig.cs
in Legacy.Monolith/App_Start
22 1
RouteConfig.cs
in Legacy.Monolith/App_Start
21 1
Global.asax.cs
in Legacy.Monolith
20 1
Program.cs
in Modernized.Infrastructure
18 1
LoginModel.cs
in Legacy.Monolith/Models
17 -
Site.css
in Legacy.Monolith/Content
16 -
ServiceAController.cs
in Legacy.Monolith/Controllers
16 1
ServiceBController.cs
in Legacy.Monolith/Controllers
16 1
AssemblyInfo.cs
in Legacy.Monolith/Properties
15 -
HomeController.cs
in Legacy.Monolith/Controllers
15 1
cshtml
Login.cshtml
in Legacy.Monolith/Views/Auth
14 -
cshtml
Error.cshtml
in Legacy.Monolith/Views/Shared
13 -
Startup.cs
in Legacy.Monolith
13 1
FilterConfig.cs
in Legacy.Monolith/App_Start
12 1
UnauthorizedException.cs
in Modernized.Lambda.Authorizer/Error
9 1
cshtml
Index.cshtml
in Legacy.Monolith/Views/ModernizedServiceB
8 -
cshtml
Index.cshtml
in Legacy.Monolith/Views/ModernizedServiceA
8 -
cshtml
Index.cshtml
in Legacy.Monolith/Views/ServiceA
6 -
cshtml
Index.cshtml
in Legacy.Monolith/Views/ServiceB
6 -
cshtml
_ViewStart.cshtml
in Legacy.Monolith/Views
3 -
GlobalSuppressions.cs
in Modernized.Infrastructure
1 -
asax
Global.asax
in Legacy.Monolith
1 -
Files With Most Units (Top 20)
File# lines# units
bootstrap.bundle.js
in Legacy.Monolith/Scripts
4863 327
bootstrap.esm.js
in Legacy.Monolith/Scripts
3447 243
InfrastructureStack.cs
in Modernized.Infrastructure
279 12
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Backend.ServiceA/Services
55 4
AuthCookieValidation.cs
in Modernized.Lambda.Authorizer
92 4
AuthController.cs
in Legacy.Monolith/Controllers
59 4
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Backend.ServiceB/Services
55 4
Startup.cs
in Modernized.Backend.ServiceA
83 3
CustomPersistKeysToAWSParameterStore.cs
in Modernized.Lambda.Authorizer/Services
48 3
CustomPersistKeysToAWSParameterStore.cs
in Legacy.Monolith/Services
55 3
Startup.cs
in Modernized.Backend.ServiceB
83 3
ServiceAController.cs
in Modernized.Backend.ServiceA/Controllers
27 2
Program.cs
in Modernized.Backend.ServiceA
24 2
ModernizedServiceCController.cs
in Legacy.Monolith/Controllers
58 2
ServiceBController.cs
in Modernized.Backend.ServiceB/Controllers
27 2
Program.cs
in Modernized.Backend.ServiceB
24 2
Program.cs
in Modernized.Infrastructure
18 1
UnauthorizedException.cs
in Modernized.Lambda.Authorizer/Error
9 1
RouteConfig.cs
in Legacy.Monolith/App_Start
21 1
FilterConfig.cs
in Legacy.Monolith/App_Start
12 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 202 long lines.

File# lines# units# long lines
bootstrap.bundle.js
in Legacy.Monolith/Scripts
4863 327 70
bootstrap.rtl.css
in Legacy.Monolith/Content
9104 - 61
bootstrap.esm.js
in Legacy.Monolith/Scripts
3447 243 38
InfrastructureStack.cs
in Modernized.Infrastructure
279 12 19
cshtml
Index.cshtml
in Legacy.Monolith/Views/Home
22 - 4
Startup.Auth.cs
in Legacy.Monolith/App_Start
54 1 4
InfrastructureConfigs.cs
in Modernized.Infrastructure
59 - 2
AuthCookieValidation.cs
in Modernized.Lambda.Authorizer
92 4 2
GlobalSuppressions.cs
in Modernized.Infrastructure
1 - 1
ModernizedServiceAController.cs
in Legacy.Monolith/Controllers
34 1 1