aws-samples / modernization-unicorn-store
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 84 files with 4,214 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,155 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (816 lines of code)
    • 75 very small files (2,243 lines of code)
0% | 0% | 27% | 19% | 53%
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
cs0% | 0% | 40% | 19% | 39%
js0% | 0% | 99% | 0% | <1%
yaml0% | 0% | 0% | 100% | 0%
cshtml0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
UnicornStore/Controllers0% | 0% | 69% | 0% | 30%
UnicornStore/Data0% | 0% | 100% | 0% | 0%
UnicornStore/wwwroot0% | 0% | 81% | 0% | 18%
content/secrets0% | 0% | 0% | 100% | 0%
UnicornStore/Areas0% | 0% | 0% | 39% | 60%
UnicornStore/Models0% | 0% | 0% | 28% | 71%
UnicornStore0% | 0% | 0% | 47% | 52%
UnicornStore/Views0% | 0% | 0% | 0% | 100%
UnicornStore/Components0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
UnicornStore/ViewModels0% | 0% | 0% | 0% | 100%
UnicornStore/Properties0% | 0% | 0% | 0% | 100%
UnicornStore/Pages0% | 0% | 0% | 0% | 100%
UnicornStore/Scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
AccountController.cs
in UnicornStore/Controllers
388 24
ManageController.cs
in UnicornStore/Controllers
291 21
DbInitializer.cs
in UnicornStore/Data
245 4
respond.js
in UnicornStore/wwwroot/Scripts
231 11
player-template.yaml
in content/secrets/cfn
196 -
player-vpc-template.yaml
in content/secrets/cfn
180 -
StoreManagerController.cs
in UnicornStore/Areas/Admin/Controllers
168 11
ShoppingCart.cs
in UnicornStore/Models
136 8
Startup.cs
in UnicornStore
136 3
cshtml
Index.cshtml
in UnicornStore/Views/ShoppingCart
100 -
AccountViewModels.cs
in UnicornStore/Models
94 -
Platform.cs
in UnicornStore
93 2
CheckoutController.cs
in UnicornStore/Controllers
87 4
ShoppingCartController.cs
in UnicornStore/Controllers
77 4
ManageViewModels.cs
in UnicornStore/Models
75 -
cshtml
_Layout.cshtml
in UnicornStore/Views/Shared
70 -
StoreController.cs
in UnicornStore/Controllers
68 4
cshtml
Index.cshtml
in UnicornStore/Views/Manage
67 -
cshtml
Edit.cshtml
in UnicornStore/Areas/Admin/Views/StoreManager
64 -
cshtml
Create.cshtml
in UnicornStore/Areas/Admin/Views/StoreManager
63 -
HomeController.cs
in UnicornStore/Controllers
63 5
cshtml
Index.cshtml
in UnicornStore/Areas/Admin/Views/StoreManager
61 -
cshtml
Login.cshtml
in UnicornStore/Views/Account
57 -
Order.cs
in UnicornStore/Models
54 -
Site.css
in UnicornStore/wwwroot/Content
51 -
cshtml
ManageLogins.cshtml
in UnicornStore/Views/Manage
51 -
cshtml
Details.cshtml
in UnicornStore/Areas/Admin/Views/StoreManager
45 -
Program.cs
in UnicornStore
43 2
cshtml
VerifyCode.cshtml
in UnicornStore/Views/Account
40 -
cshtml
ResetPassword.cshtml
in UnicornStore/Views/Account
40 -
cshtml
ChangePassword.cshtml
in UnicornStore/Views/Manage
39 -
cshtml
Register.cshtml
in UnicornStore/Views/Account
39 -
Blessing.cs
in UnicornStore/Models
38 1
cshtml
SetPassword.cshtml
in UnicornStore/Views/Manage
35 -
cshtml
_LoginPartial.cshtml
in UnicornStore/Views/Shared
31 -
cshtml
VerifyPhoneNumber.cshtml
in UnicornStore/Views/Manage
31 -
cshtml
_ExternalLoginsListPartial.cshtml
in UnicornStore/Views/Account
31 -
cshtml
ExternalLoginConfirmation.cshtml
in UnicornStore/Views/Account
31 -
cshtml
AddressAndPayment.cshtml
in UnicornStore/Views/Checkout
27 -
cshtml
AddPhoneNumber.cshtml
in UnicornStore/Views/Manage
25 -
cshtml
ForgotPassword.cshtml
in UnicornStore/Views/Account
25 -
cshtml
Details.cshtml
in UnicornStore/Views/Store
25 -
cshtml
RemoveBlessing.cshtml
in UnicornStore/Areas/Admin/Views/StoreManager
25 -
CartSummaryComponent.cs
in UnicornStore/Components
25 2
cshtml
Browse.cshtml
in UnicornStore/Views/Store
23 -
GenreMenuComponent.cs
in UnicornStore/Components
23 2
cshtml
Index.cshtml
in UnicornStore/Views/Home
20 -
MusicStoreContext.cs
in UnicornStore/Models
20 1
cshtml
DemoLinkDisplay.cshtml
in UnicornStore/Views/Shared
19 -
cshtml
SendCode.cshtml
in UnicornStore/Views/Account
18 -
Files With Most Units (Top 18)
File# lines# units
AccountController.cs
in UnicornStore/Controllers
388 24
ManageController.cs
in UnicornStore/Controllers
291 21
respond.js
in UnicornStore/wwwroot/Scripts
231 11
StoreManagerController.cs
in UnicornStore/Areas/Admin/Controllers
168 11
ShoppingCart.cs
in UnicornStore/Models
136 8
HomeController.cs
in UnicornStore/Controllers
63 5
ShoppingCartController.cs
in UnicornStore/Controllers
77 4
CheckoutController.cs
in UnicornStore/Controllers
87 4
StoreController.cs
in UnicornStore/Controllers
68 4
DbInitializer.cs
in UnicornStore/Data
245 4
Startup.cs
in UnicornStore
136 3
MessageServices.cs
in UnicornStore
15 2
Platform.cs
in UnicornStore
93 2
CartSummaryComponent.cs
in UnicornStore/Components
25 2
GenreMenuComponent.cs
in UnicornStore/Components
23 2
Program.cs
in UnicornStore
43 2
MusicStoreContext.cs
in UnicornStore/Models
20 1
Blessing.cs
in UnicornStore/Models
38 1
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 97 long lines.

File# lines# units# long lines
DbInitializer.cs
in UnicornStore/Data
245 4 53
AccountController.cs
in UnicornStore/Controllers
388 24 10
cshtml
Index.cshtml
in UnicornStore/Views/Manage
67 - 6
ManageController.cs
in UnicornStore/Controllers
291 21 4
respond.js
in UnicornStore/wwwroot/Scripts
231 11 3
cshtml
ManageLogins.cshtml
in UnicornStore/Views/Manage
51 - 3
cshtml
_ExternalLoginsListPartial.cshtml
in UnicornStore/Views/Account
31 - 3
cshtml
_Layout.cshtml
in UnicornStore/Views/Shared
70 - 2
cshtml
Login.cshtml
in UnicornStore/Views/Account
57 - 2
cshtml
_LoginPartial.cshtml
in UnicornStore/Views/Shared
31 - 1
cshtml
Default.cshtml
in UnicornStore/Views/Shared/Components/GenreMenu
16 - 1
cshtml
Default.cshtml
in UnicornStore/Views/Shared/Components/Announcement
9 - 1
cshtml
VerifyCode.cshtml
in UnicornStore/Views/Account
40 - 1
cshtml
ForgotPasswordConfirmation.cshtml
in UnicornStore/Views/Account
14 - 1
cshtml
SendCode.cshtml
in UnicornStore/Views/Account
18 - 1
cshtml
RegisterConfirmation.cshtml
in UnicornStore/Views/Account
14 - 1
cshtml
ExternalLoginConfirmation.cshtml
in UnicornStore/Views/Account
31 - 1
cshtml
ConfirmEmail.cshtml
in UnicornStore/Views/Account
9 - 1
cshtml
Index.cshtml
in UnicornStore/Views/Store
14 - 1
CheckoutController.cs
in UnicornStore/Controllers
87 4 1