aws / s2n-tls
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
patch
nix
v
mk
cfg
ini
clang-format
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.

main47265 LOC (24%) 401 files
test109635 LOC (57%) 869 files
generated0 LOC (0%) 0 files
build and deployment611 LOC (<1%) 11 files
other33537 LOC (17%) 226 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
nix
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 401 files match defined criteria (47,265 LOC, 100.0% vs. main code):
    • 173 *.c files (32,116 LOC)
    • 50 *.rs files (8,712 LOC)
    • 150 *.h files (4,748 LOC)
    • 2 *.py files (781 LOC)
    • 8 *.nix files (478 LOC)
    • 16 *.toml files (305 LOC)
    • 2 *.cmake files (125 LOC)
  • " *.c" is biggest, containing 67.95% of LOC.
  • " *.cmake" is smallest, containing 0.26% of LOC.


*.c32116 LOC (67%) 173 files
*.rs8712 LOC (18%) 50 files
*.h4748 LOC (10%) 150 files
*.py781 LOC (1%) 2 files
*.nix478 LOC (1%) 8 files
*.toml305 LOC (<1%) 16 files
*.cmake125 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
v
mk
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 869 files match defined criteria (109,635 LOC, 232.0% vs. main code):
    • 559 *.c files (81,258 LOC)
    • 187 *.toml files (15,446 LOC)
    • 38 *.py files (7,835 LOC)
    • 19 *.rs files (2,351 LOC)
    • 29 *.h files (976 LOC)
    • 27 *.sh files (918 LOC)
    • 5 *.v files (688 LOC)
    • 2 *.pl files (73 LOC)
    • 1 *.mk files (60 LOC)
    • 1 *.rb files (28 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.c" is biggest, containing 74.12% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.c81258 LOC (74%) 559 files
*.toml15446 LOC (14%) 187 files
*.py7835 LOC (7%) 38 files
*.rs2351 LOC (2%) 19 files
*.h976 LOC (<1%) 29 files
*.sh918 LOC (<1%) 27 files
*.v688 LOC (<1%) 5 files
*.pl73 LOC (<1%) 2 files
*.mk60 LOC (<1%) 1 file
*.rb28 LOC (<1%) 1 file
*.cfg2 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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 ".*[.]mk".
    • files with paths like ".*/[.]gitmodules".
  • 11 files match defined criteria (611 LOC, 1.3% vs. main code):
    • 10 *.sh files (473 LOC)
    • 1 *.mk files (138 LOC)
  • " *.sh" is biggest, containing 77.41% of LOC.
  • " *.mk" is smallest, containing 22.59% of LOC.


*.sh473 LOC (77%) 10 files
*.mk138 LOC (22%) 1 file
Other Code
txt
patch
ini
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 ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
  • 226 files match defined criteria (33,537 LOC, 71.0% vs. main code):
    • 177 *.txt files (31,319 LOC)
    • 35 *.md files (1,755 LOC)
    • 12 *.patch files (404 LOC)
    • 1 *.ini files (31 LOC)
    • 1 *.rst files (28 LOC)
  • " *.txt" is biggest, containing 93.39% of LOC.
  • " *.rst" is smallest, containing 0.08% of LOC.


*.txt31319 LOC (93%) 177 files
*.md1755 LOC (5%) 35 files
*.patch404 LOC (1%) 12 files
*.ini31 LOC (<1%) 1 file
*.rst28 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 20:41