aws / s2n-netbench
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
npmignore
txt
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.

main11187 LOC (77%) 110 files
test789 LOC (5%) 23 files
generated0 LOC (0%) 0 files
build and deployment61 LOC (<1%) 4 files
other2472 LOC (17%) 14 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 ".*".
  • 110 files match defined criteria (11,187 LOC, 100.0% vs. main code):
    • 92 *.rs files (10,540 LOC)
    • 11 *.toml files (245 LOC)
    • 3 *.ts files (230 LOC)
    • 3 *.html files (117 LOC)
    • 1 *.py files (55 LOC)
  • " *.rs" is biggest, containing 94.22% of LOC.
  • " *.py" is smallest, containing 0.49% of LOC.


*.rs10540 LOC (94%) 92 files
*.toml245 LOC (2%) 11 files
*.ts230 LOC (2%) 3 files
*.html117 LOC (1%) 3 files
*.py55 LOC (<1%) 1 file
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 ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 23 files match defined criteria (789 LOC, 7.1% vs. main code):
    • 19 *.snap files (519 LOC)
    • 2 *.rs files (241 LOC)
    • 2 *.py files (29 LOC)
  • " *.snap" is biggest, containing 65.78% of LOC.
  • " *.py" is smallest, containing 3.68% of LOC.


*.snap519 LOC (65%) 19 files
*.rs241 LOC (30%) 2 files
*.py29 LOC (3%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (61 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh61 LOC (100%) 4 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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]npmignore".
  • 14 files match defined criteria (2,472 LOC, 22.1% vs. main code):
    • 7 *.json files (2,062 LOC)
    • 7 *.md files (410 LOC)
  • " *.json" is biggest, containing 83.41% of LOC.
  • " *.md" is smallest, containing 16.59% of LOC.


*.json2062 LOC (83%) 7 files
*.md410 LOC (16%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:58