dart-lang / pub-dev
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 306 files with 37,766 lines of code.
    • 1 very long files (1,128 lines of code)
    • 10 long files (5,898 lines of code)
    • 48 medium size files (14,135 lines of codeclsfd_ftr_w_mp_ins)
    • 62 small files (8,845 lines of code)
    • 185 very small files (7,760 lines of code)
2% | 15% | 37% | 23% | 20%
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
dart3% | 16% | 35% | 25% | 18%
scss0% | 0% | 83% | 0% | 16%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
app/lib4% | 17% | 39% | 23% | 16%
pkg/web_app0% | 29% | 12% | 17% | 39%
pkg/pub_package_reader0% | 60% | 0% | 15% | 24%
pkg/web_css0% | 0% | 83% | 0% | 16%
pkg/fake_gcloud0% | 0% | 97% | 0% | 2%
pkg/pub_integration0% | 0% | 31% | 46% | 21%
pkg/api_builder0% | 0% | 0% | 48% | 51%
pkg/client_data0% | 0% | 0% | 53% | 46%
pkg/indexed_blob0% | 0% | 0% | 74% | 25%
pkg/pub_dartdoc0% | 0% | 0% | 42% | 57%
pkg/pub_validations0% | 0% | 0% | 86% | 13%
pkg/code_coverage0% | 0% | 0% | 50% | 49%
ROOT0% | 0% | 0% | 0% | 100%
tool0% | 0% | 0% | 0% | 100%
app0% | 0% | 0% | 0% | 100%
pkg/pub_dartdoc_data0% | 0% | 0% | 0% | 100%
pkg/_popularity0% | 0% | 0% | 0% | 100%
app/config0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
backend.dart
in app/lib/package
1128 49
dom.dart
in app/lib/frontend/dom
811 45
models.dart
in app/lib/package
678 15
dartdoc_runner.dart
in app/lib/dartdoc
646 22
search_service.dart
in app/lib/search
579 19
integrity.dart
in app/lib/shared
543 18
account.dart
in pkg/web_app/lib/src
536 29
models.dart
in app/lib/audit
535 2
backend.dart
in app/lib/admin
526 16
pub_package_reader.dart
in pkg/pub_package_reader/lib
523 17
mem_index.dart
in app/lib/search
521 29
backend.dart
in app/lib/job
477 19
package.dart
in app/lib/frontend/templates
445 19
backend.dart
in app/lib/publisher
441 20
consent_backend.dart
in app/lib/account
406 30
_list.scss
in pkg/web_css/lib/src
396 -
index.dart
in app/lib/frontend/templates/views/pkg
384 3
backend.dart
in app/lib/account
382 20
backend.dart
in app/lib/scorecard
375 8
material.dart
in app/lib/frontend/dom
361 -
redis_cache.dart
in app/lib/shared
352 10
urls.dart
in app/lib/shared
349 20
backend.dart
in app/lib/dartdoc
347 12
mem_datastore.dart
in pkg/fake_gcloud/lib
344 16
package.dart
in app/lib/frontend/handlers
341 15
markdown.dart
in app/lib/shared
318 21
_base.scss
in pkg/web_css/lib/src
316 -
backend.dart
in app/lib/search
311 15
pubapi.dart
in app/lib/frontend/handlers
309 15
_detail_page.scss
in pkg/web_css/lib/src
308 -
mem_storage.dart
in pkg/fake_gcloud/lib
303 18
headless_env.dart
in pkg/pub_integration/lib/src
288 14
exceptions.dart
in app/lib/shared
286 12
handler_helpers.dart
in app/lib/shared
283 2
configuration.dart
in app/lib/shared
281 3
utils.dart
in app/lib/shared
278 18
_site_header.scss
in pkg/web_css/lib/src
269 -
static_files.dart
in app/lib/frontend
268 16
score_tab.dart
in app/lib/frontend/templates/views/pkg
267 1
_pkg.scss
in pkg/web_css/lib/src
265 -
search_form.dart
in app/lib/search
265 11
layout.dart
in app/lib/frontend/templates/views/shared
264 -
custom_api.dart
in app/lib/frontend/handlers
261 11
models.dart
in app/lib/scorecard
259 7
_home.scss
in pkg/web_css/lib/src
250 -
storage.dart
in app/lib/shared
249 13
_isolate.dart
in app/lib/service/entrypoint
233 3
package_misc.dart
in app/lib/frontend/templates
230 1
_dom_helper.dart
in pkg/web_app/lib/src
224 8
pub_http_client.dart
in pkg/pub_integration/lib/src
224 14
Files With Most Units (Top 20)
File# lines# units
backend.dart
in app/lib/package
1128 49
dom.dart
in app/lib/frontend/dom
811 45
consent_backend.dart
in app/lib/account
406 30
account.dart
in pkg/web_app/lib/src
536 29
mem_index.dart
in app/lib/search
521 29
dartdoc_runner.dart
in app/lib/dartdoc
646 22
fake_platform.js
in pkg/pub_integration/lib/src
99 21
markdown.dart
in app/lib/shared
318 21
backend.dart
in app/lib/account
382 20
urls.dart
in app/lib/shared
349 20
backend.dart
in app/lib/publisher
441 20
search_service.dart
in app/lib/search
579 19
package.dart
in app/lib/frontend/templates
445 19
backend.dart
in app/lib/job
477 19
mem_storage.dart
in pkg/fake_gcloud/lib
303 18
integrity.dart
in app/lib/shared
543 18
utils.dart
in app/lib/shared
278 18
pub_package_reader.dart
in pkg/pub_package_reader/lib
523 17
mem_datastore.dart
in pkg/fake_gcloud/lib
344 16
static_files.dart
in app/lib/frontend
268 16
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 19 long lines.

File# lines# units# long lines
admin_page.dart
in app/lib/frontend/templates/views/pkg
216 - 3
_site_header.scss
in pkg/web_css/lib/src
269 - 2
email.dart
in app/lib/shared
114 6 2
integrity.dart
in app/lib/shared
543 18 2
_search.scss
in pkg/web_css/lib/src
84 - 1
_variables.scss
in pkg/web_css/lib/src
29 - 1
api_router_generator.dart
in pkg/api_builder/lib/src
110 1 1
public_pages.dart
in pkg/pub_integration/lib/script
97 10 1
layout.dart
in app/lib/frontend/templates/views/shared
264 - 1
admin_page.dart
in app/lib/frontend/templates/views/publisher
111 - 1
misc.dart
in app/lib/frontend/handlers
154 14 1
configuration.dart
in app/lib/shared
281 3 1
overrides.dart
in app/lib/package
71 1 1
pub_get_offline.dart
in tool
97 3 1