aws / s2n-quic
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
snap
txt
gitattributes
patch
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.

main137622 LOC (56%) 855 files
test40387 LOC (16%) 754 files
generated9435 LOC (3%) 6 files
build and deployment199 LOC (<1%) 5 files
other54141 LOC (22%) 93 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 ".*".
  • 855 files match defined criteria (137,622 LOC, 100.0% vs. main code):
    • 821 *.rs files (136,605 LOC)
    • 31 *.toml files (938 LOC)
    • 1 *.html files (76 LOC)
    • 2 *.h files (3 LOC)
  • " *.rs" is biggest, containing 99.26% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.rs136605 LOC (99%) 821 files
*.toml938 LOC (<1%) 31 files
*.html76 LOC (<1%) 1 file
*.h3 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*__test__.*".
    • files with paths like ".*/tests_.*".
  • 754 files match defined criteria (40,387 LOC, 29.3% vs. main code):
    • 352 *.toml files (17,644 LOC)
    • 332 *.snap files (13,757 LOC)
    • 70 *.rs files (8,986 LOC)
  • " *.toml" is biggest, containing 43.69% of LOC.
  • " *.rs" is smallest, containing 22.25% of LOC.


*.toml17644 LOC (43%) 352 files
*.snap13757 LOC (34%) 332 files
*.rs8986 LOC (22%) 70 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with any line of content like "// This file was generated .*".
  • 6 files match defined criteria (9,435 LOC, 6.9% vs. main code). All matches are in *.rs files.


*.rs9435 LOC (100%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 5 files match defined criteria (199 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh199 LOC (100%) 5 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
  • 93 files match defined criteria (54,141 LOC, 39.3% vs. main code):
    • 43 *.txt files (52,659 LOC)
    • 29 *.md files (788 LOC)
    • 6 *.rs files (509 LOC)
    • 13 *.toml files (149 LOC)
    • 2 *.sh files (36 LOC)
  • " *.txt" is biggest, containing 97.26% of LOC.
  • " *.sh" is smallest, containing 0.07% of LOC.


*.txt52659 LOC (97%) 43 files
*.md788 LOC (1%) 29 files
*.rs509 LOC (<1%) 6 files
*.toml149 LOC (<1%) 13 files
*.sh36 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:11