dart-lang / dart-services
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 43 files with 7,550 lines of code.
    • 1 very long files (2,443 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (2,594 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,639 lines of code)
    • 25 very small files (874 lines of code)
32% | 0% | 34% | 21% | 11%
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
dart34% | 0% | 36% | 19% | 8%
proto0% | 0% | 0% | 100% | 0%
html0% | 0% | 0% | 100% | 0%
Dockerfile0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/src/protos83% | 0% | 16% | 0% | <1%
lib/src0% | 0% | 53% | 36% | 10%
tool0% | 0% | 85% | 0% | 14%
example/web0% | 0% | 0% | 78% | 21%
benchmark0% | 0% | 0% | 100% | 0%
protos0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
example0% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
dart_services.pb.dart
in lib/src/protos
2443 82
common.dart
in lib/src
492 32
dart_services.pbjson.dart
in lib/src/protos
482 -
analysis_server.dart
in lib/src
463 22
grind.dart
in tool
342 21
fuzz_driver.dart
in tool
340 13
common_server_impl.dart
in lib/src
246 14
compiler.dart
in lib/src
229 6
sdk.dart
in lib/src
195 11
bench.dart
in benchmark
193 8
index.dart
in example/web
186 15
server_cache.dart
in lib/src
175 10
proto
dart_services.proto
in protos
175 -
project_creator.dart
in lib/src
173 7
project.dart
in lib/src
155 8
analysis_servers.dart
in lib/src
144 11
common_server_api.dart
in lib/src
141 1
index.html
in example/web
102 -
services_cloud_run.dart
in lib
96 3
bench.dart
in lib/src
89 7
services_dev.dart
in lib
83 4
warmup.dart
in tool
70 3
pub.dart
in lib/src
55 3
scheduler.dart
in lib/src
48 4
styles.css
in example/web
44 -
utils.dart
in lib/src
42 2
services_utils.dart
in example/web
36 1
pubspec.yaml
in root
34 -
cloud_run.Dockerfile
in root
32 -
load_driver.dart
in tool
32 2
cloud_run_old.Dockerfile
in root
32 -
cloud_run_beta.Dockerfile
in root
32 -
cloud_run_dev.Dockerfile
in root
32 -
config.dart
in lib/src
31 2
analysis_options.yaml
in root
23 -
shelf_cors.dart
in lib/src
19 1
update_sdk.dart
in tool
14 1
flutter-sdk-version.yaml
in root
13 -
pubspec.yaml
in example
12 -
analysis_options.yaml
in example
2 -
version.dart
in lib
1 -
dart_services.pbenum.dart
in lib/src/protos
1 -
dart_services.pbserver.dart
in lib/src/protos
1 -
Files With Most Units (Top 20)
File# lines# units
dart_services.pb.dart
in lib/src/protos
2443 82
common.dart
in lib/src
492 32
analysis_server.dart
in lib/src
463 22
grind.dart
in tool
342 21
index.dart
in example/web
186 15
common_server_impl.dart
in lib/src
246 14
fuzz_driver.dart
in tool
340 13
sdk.dart
in lib/src
195 11
analysis_servers.dart
in lib/src
144 11
server_cache.dart
in lib/src
175 10
project.dart
in lib/src
155 8
bench.dart
in benchmark
193 8
bench.dart
in lib/src
89 7
project_creator.dart
in lib/src
173 7
compiler.dart
in lib/src
229 6
services_dev.dart
in lib
83 4
scheduler.dart
in lib/src
48 4
services_cloud_run.dart
in lib
96 3
pub.dart
in lib/src
55 3
warmup.dart
in tool
70 3
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 18 long lines.

File# lines# units# long lines
dart_services.pbjson.dart
in lib/src/protos
482 - 17
load_driver.dart
in tool
32 2 1