dart-lang / pana
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 50 files with 6,119 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (523 lines of code)
    • 9 medium size files (2,370 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,390 lines of code)
    • 23 very small files (836 lines of code)
0% | 8% | 38% | 39% | 13%
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
dart0% | 8% | 39% | 39% | 12%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/src0% | 20% | 37% | 28% | 13%
lib/src/report0% | 0% | 53% | 34% | 12%
lib/src/license_detection0% | 0% | 44% | 48% | 6%
lib/src/tag0% | 0% | 36% | 59% | 4%
lib/src/batch0% | 0% | 0% | 64% | 35%
ROOT0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sdk_env.dart
in lib/src
523 14
dependencies.dart
in lib/src/report
340 4
tagger.dart
in lib/src/tag
298 6
pkg_resolution.dart
in lib/src
288 7
template.dart
in lib/src/report
285 1
token_matcher.dart
in lib/src/license_detection
261 8
utils.dart
in lib/src
261 11
model.dart
in lib/src
220 5
confidence.dart
in lib/src/license_detection
210 9
package_analyzer.dart
in lib/src
207 6
_violations.dart
in lib/src/tag
184 5
license.dart
in lib/src/license_detection
184 6
_graphs.dart
in lib/src/tag
170 10
license_detector.dart
in lib/src/license_detection
170 7
tokenizer.dart
in lib/src/license_detection
165 5
_common.dart
in lib/src/report
153 10
download_utils.dart
in lib/src
152 8
static_analysis.dart
in lib/src/report
146 2
repository_url.dart
in lib/src
133 5
batch_compare_command.dart
in lib/src/batch
132 4
pubspec.dart
in lib/src
131 1
_specs.dart
in lib/src/tag
124 -
batch_run_command.dart
in lib/src/batch
115 4
internal_model.dart
in lib/src
110 2
package_context.dart
in lib/src
109 1
analysis_options.dart
in lib/src
107 5
multi_platform.dart
in lib/src/report
105 1
batch_query_command.dart
in lib/src/batch
93 2
markdown_content.dart
in lib/src
90 4
null_safety.dart
in lib/src/report
76 1
maintenance.dart
in lib/src
65 4
code_problem.dart
in lib/src
62 -
dartdoc_analyzer.dart
in lib/src
57 2
crc32.dart
in lib/src/license_detection
55 1
batch_model.dart
in lib/src/batch
44 -
pubspec.yaml
in root
44 -
license.dart
in lib/src
41 3
create_report.dart
in lib/src/report
37 1
documentation.dart
in lib/src/report
37 1
_common.dart
in lib/src/tag
34 2
analysis_options.yaml
in root
30 -
primary_filter.dart
in lib/src/license_detection
18 1
pubspec_io.dart
in lib/src
14 1
pana.dart
in lib
10 -
logging.dart
in lib/src
9 1
json_converters.dart
in lib/src
9 -
messages.dart
in lib/src
5 1
null_safety.dart
in lib/src
4 -
models.dart
in lib
1 -
version.dart
in lib/src
1 -
Files With Most Units (Top 20)
File# lines# units
sdk_env.dart
in lib/src
523 14
utils.dart
in lib/src
261 11
_common.dart
in lib/src/report
153 10
_graphs.dart
in lib/src/tag
170 10
confidence.dart
in lib/src/license_detection
210 9
token_matcher.dart
in lib/src/license_detection
261 8
download_utils.dart
in lib/src
152 8
pkg_resolution.dart
in lib/src
288 7
license_detector.dart
in lib/src/license_detection
170 7
tagger.dart
in lib/src/tag
298 6
license.dart
in lib/src/license_detection
184 6
package_analyzer.dart
in lib/src
207 6
_violations.dart
in lib/src/tag
184 5
tokenizer.dart
in lib/src/license_detection
165 5
repository_url.dart
in lib/src
133 5
analysis_options.dart
in lib/src
107 5
model.dart
in lib/src
220 5
dependencies.dart
in lib/src/report
340 4
maintenance.dart
in lib/src
65 4
markdown_content.dart
in lib/src
90 4
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 8 long lines.

File# lines# units# long lines
dependencies.dart
in lib/src/report
340 4 5
template.dart
in lib/src/report
285 1 2
multi_platform.dart
in lib/src/report
105 1 1