aws / aws-lc-rs
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
txt
obj
p8
gitattributes
tpl
gitmodules
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.

main53906 LOC (25%) 129 files
test6782 LOC (3%) 48 files
generated837 LOC (<1%) 1 file
build and deployment1549 LOC (<1%) 31 files
other145413 LOC (69%) 130 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 ".*".
  • 129 files match defined criteria (53,906 LOC, 100.0% vs. main code):
    • 110 *.rs files (21,374 LOC)
    • 6 *.h files (16,177 LOC)
    • 2 *.inc files (15,978 LOC)
    • 9 *.toml files (357 LOC)
    • 2 *.c files (20 LOC)
  • " *.rs" is biggest, containing 39.65% of LOC.
  • " *.c" is smallest, containing 0.04% of LOC.


*.rs21374 LOC (39%) 110 files
*.h16177 LOC (30%) 6 files
*.inc15978 LOC (29%) 2 files
*.toml357 LOC (<1%) 9 files
*.c20 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
p8
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
  • 48 files match defined criteria (6,782 LOC, 12.6% vs. main code):
    • 40 *.rs files (6,620 LOC)
    • 6 *.p8 files (141 LOC)
    • 1 *.sh files (16 LOC)
    • 1 *.c files (5 LOC)
  • " *.rs" is biggest, containing 97.61% of LOC.
  • " *.c" is smallest, containing 0.07% of LOC.


*.rs6620 LOC (97%) 40 files
*.p8141 LOC (2%) 6 files
*.sh16 LOC (<1%) 1 file
*.c5 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 1 file matches defined criteria (837 LOC, 1.6% vs. main code). All matches are in *.rs files.


*.rs837 LOC (100%) 1 file
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 ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitmodules".
  • 31 files match defined criteria (1,549 LOC, 2.9% vs. main code):
    • 29 *.sh files (1,489 LOC)
    • 2 *.bat files (60 LOC)
  • " *.sh" is biggest, containing 96.13% of LOC.
  • " *.bat" is smallest, containing 3.87% of LOC.


*.sh1489 LOC (96%) 29 files
*.bat60 LOC (3%) 2 files
Other Code
txt
obj
tpl
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 ".*[.]txt".
    • files with paths like ".*[.]obj".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 130 files match defined criteria (145,413 LOC, 269.8% vs. main code):
    • 83 *.txt files (143,393 LOC)
    • 26 *.obj files (952 LOC)
    • 18 *.md files (759 LOC)
    • 2 *.rs files (270 LOC)
    • 1 *.tpl files (39 LOC)
  • " *.txt" is biggest, containing 98.61% of LOC.
  • " *.tpl" is smallest, containing 0.03% of LOC.


*.txt143393 LOC (98%) 83 files
*.obj952 LOC (<1%) 26 files
*.md759 LOC (<1%) 18 files
*.rs270 LOC (<1%) 2 files
*.tpl39 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:46