microsoft / federalist
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 133 files with 5,454 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,279 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (883 lines of code)
    • 122 very small files (3,292 lines of code)
0% | 0% | 23% | 16% | 60%
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
js0% | 0% | 24% | 17% | 57%
css0% | 0% | 100% | 0% | 0%
scss0% | 0% | 0% | 31% | 68%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
assets/app0% | 0% | 34% | 9% | 55%
assets/styles0% | 0% | 39% | 19% | 41%
tasks/config0% | 0% | 62% | 0% | 37%
api/services0% | 0% | 0% | 64% | 35%
api/hooks0% | 0% | 0% | 91% | 8%
api/controllers0% | 0% | 0% | 0% | 100%
api/models0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
api/responses0% | 0% | 0% | 0% | 100%
migrations0% | 0% | 0% | 0% | 100%
api/policies0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
assets0% | 0% | 0% | 0% | 100%
tasks/register0% | 0% | 0% | 0% | 100%
config/env0% | 0% | 0% | 0% | 100%
tasks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Github.js
in assets/app/models
408 31
edit-file.js
in assets/app/views/editor
376 24
codemirror.css
in assets/styles
266 -
sails-linker.js
in tasks/config
229 1
passport.js
in api/services
173 5
index.js
in api/hooks/buildEngine
133 12
styles.scss
in assets/styles
130 -
local.js
in api/services/protocols
120 3
edit-main.js
in assets/app/views/editor
113 8
add-image.js
in assets/app/views/editor
108 9
S3.js
in api/services
106 11
Build.js
in api/models
96 5
GitHub.js
in api/services
96 4
main.js
in assets/app/views
93 10
add.js
in assets/app/views/site
93 9
index.html
in assets
92 -
AuthController.js
in api/controllers
85 5
Site.js
in api/models
84 5
create.js
in assets/app/views/editor/prosemirror
83 3
add.html
in assets/app/templates/site
81 -
_animations.scss
in assets/styles/sass
78 -
edit.html
in assets/app/templates/site
76 -
SiteController.js
in api/controllers
71 5
SQS.js
in api/services
70 2
list-item.html
in assets/app/templates/site
59 -
_header.scss
in assets/styles/sass
59 -
_home.scss
in assets/styles/sass
59 -
breadcrumb.js
in assets/app/views/editor
54 2
UserController.js
in api/controllers
53 4
app.js
in assets/app
53 6
20151015171458-merge-sites.js
in migrations
51 3
file.html
in assets/app/templates/editor
50 -
Document.js
in assets/app/models
47 3
edit.js
in assets/app/views/site
47 6
files.js
in assets/app/views/editor
45 3
production.js
in config/env
45 -
WebhookController.js
in api/controllers
41 4
pages.js
in assets/app/views/editor
40 3
Gruntfile.js
in root
39 4
home.html
in assets/app/templates
39 -
builds.js
in assets/app/views/site
37 1
filterCurrentUser.js
in api/policies
36 1
app.js
in root
34 1
add-image.html
in assets/app/templates/editor
34 -
whitelist-field.html
in assets/app/templates/editor
34 -
Passport.js
in api/models
33 4
list-item.js
in assets/app/views/site
33 2
list.js
in assets/app/views/site
33 2
forbidden.js
in api/responses
32 -
notFound.js
in api/responses
32 -
Files With Most Units (Top 20)
File# lines# units
Github.js
in assets/app/models
408 31
edit-file.js
in assets/app/views/editor
376 24
index.js
in api/hooks/buildEngine
133 12
S3.js
in api/services
106 11
main.js
in assets/app/views
93 10
add-image.js
in assets/app/views/editor
108 9
add.js
in assets/app/views/site
93 9
edit-main.js
in assets/app/views/editor
113 8
app.js
in assets/app
53 6
edit.js
in assets/app/views/site
47 6
AuthController.js
in api/controllers
85 5
SiteController.js
in api/controllers
71 5
Build.js
in api/models
96 5
Site.js
in api/models
84 5
passport.js
in api/services
173 5
Gruntfile.js
in root
39 4
UserController.js
in api/controllers
53 4
WebhookController.js
in api/controllers
41 4
Passport.js
in api/models
33 4
GitHub.js
in api/services
96 4
Files With Long Lines (Top 20)

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

File# lines# units# long lines
edit.html
in assets/app/templates/site
76 - 7
list-item.html
in assets/app/templates/site
59 - 6
home.html
in assets/app/templates
39 - 5
app.js
in root
34 1 3
main.html
in assets/app/templates/editor
21 - 3
add.html
in assets/app/templates/site
81 - 3
index.html
in assets
92 - 3
forbidden.js
in api/responses
32 - 2
notFound.js
in api/responses
32 - 2
serverError.js
in api/responses
29 - 2
edit-main.js
in assets/app/views/editor
113 8 2
main.js
in assets/app/views
93 10 2
codemirror.css
in assets/styles
266 - 2
index.js
in api/hooks/buildEngine
133 12 1
file.html
in assets/app/templates/editor
50 - 1
breadcrumb.js
in assets/app/views/editor
54 2 1
edit-file.js
in assets/app/views/editor
376 24 1
create.js
in assets/app/views/editor/prosemirror
83 3 1
add.js
in assets/app/views/site
93 9 1
templates.js
in config
26 - 1