anthropics / tokio
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
  • 7 extensions are included in analyses: rs, md, toml, yaml, gitignore, txt, json
  • 2 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (3 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (7 files).
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main63133 LOC (58%) 479 files
test37878 LOC (35%) 287 files
generated0 LOC (0%) 0 files
build and deployment615 LOC (<1%) 15 files
other6344 LOC (5%) 48 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 479 files match defined criteria (63,133 LOC, 100.0% vs. main code):
    • 474 *.rs files (63,077 LOC)
    • 5 *.toml files (56 LOC)
  • " *.rs" is biggest, containing 99.91% of LOC.
  • " *.toml" is smallest, containing 0.09% of LOC.


*.rs63077 LOC (99%) 474 files
*.toml56 LOC (<1%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 287 files match defined criteria (37,878 LOC, 60.0% vs. main code). All matches are in *.rs files.


*.rs37878 LOC (100%) 287 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 15 files match defined criteria (615 LOC, 1.0% vs. main code):
    • 12 *.toml files (603 LOC)
    • 3 *.gitignore files (12 LOC)
  • " *.toml" is biggest, containing 98.05% of LOC.
  • " *.gitignore" is smallest, containing 1.95% of LOC.


*.toml603 LOC (98%) 12 files
*.gitignore12 LOC (1%) 3 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
  • 48 files match defined criteria (6,344 LOC, 10.0% vs. main code):
    • 24 *.md files (4,782 LOC)
    • 22 *.rs files (1,419 LOC)
    • 1 *.toml files (95 LOC)
    • 1 *.json files (48 LOC)
  • " *.md" is biggest, containing 75.38% of LOC.
  • " *.json" is smallest, containing 0.76% of LOC.


*.md4782 LOC (75%) 24 files
*.rs1419 LOC (22%) 22 files
*.toml95 LOC (1%) 1 file
*.json48 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.rs files are analyzed with RustAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2026-06-24 10:48