aws / aws-encryption-sdk-c
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
pt
in
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.

main16951 LOC (47%) 248 files
test15736 LOC (43%) 71 files
generated0 LOC (0%) 0 files
build and deployment94 LOC (<1%) 3 files
other3109 LOC (8%) 156 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 248 files match defined criteria (16,951 LOC, 100.0% vs. main code):
    • 162 *.c files (10,993 LOC)
    • 63 *.h files (2,158 LOC)
    • 3 *.in files (1,779 LOC)
    • 3 *.cpp files (1,154 LOC)
    • 5 *.py files (490 LOC)
    • 8 *.cmake files (352 LOC)
    • 4 *.ps1 files (25 LOC)
  • " *.c" is biggest, containing 64.85% of LOC.
  • " *.ps1" is smallest, containing 0.15% of LOC.


*.c10993 LOC (64%) 162 files
*.h2158 LOC (12%) 63 files
*.in1779 LOC (10%) 3 files
*.cpp1154 LOC (6%) 3 files
*.py490 LOC (2%) 5 files
*.cmake352 LOC (2%) 8 files
*.ps125 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pt
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 ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/test[.].*".
  • 71 files match defined criteria (15,736 LOC, 92.8% vs. main code):
    • 33 *.c files (8,907 LOC)
    • 17 *.cpp files (4,852 LOC)
    • 1 *.inc files (1,207 LOC)
    • 17 *.h files (767 LOC)
    • 3 *.pt files (3 LOC)
  • " *.c" is biggest, containing 56.6% of LOC.
  • " *.pt" is smallest, containing 0.02% of LOC.


*.c8907 LOC (56%) 33 files
*.cpp4852 LOC (30%) 17 files
*.inc1207 LOC (7%) 1 file
*.h767 LOC (4%) 17 files
*.pt3 LOC (<1%) 3 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 3 files match defined criteria (94 LOC, 0.6% vs. main code):
    • 2 *.sh files (61 LOC)
    • 1 *.bat files (33 LOC)
  • " *.sh" is biggest, containing 64.89% of LOC.
  • " *.bat" is smallest, containing 35.11% of LOC.


*.sh61 LOC (64%) 2 files
*.bat33 LOC (35%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 156 files match defined criteria (3,109 LOC, 18.3% vs. main code):
    • 8 *.cpp files (1,166 LOC)
    • 116 *.txt files (1,064 LOC)
    • 25 *.md files (566 LOC)
    • 2 *.c files (196 LOC)
    • 2 *.rst files (55 LOC)
    • 2 *.sh files (48 LOC)
    • 1 *.bat files (14 LOC)
  • " *.cpp" is biggest, containing 37.5% of LOC.
  • " *.bat" is smallest, containing 0.45% of LOC.


*.cpp1166 LOC (37%) 8 files
*.txt1064 LOC (34%) 116 files
*.md566 LOC (18%) 25 files
*.c196 LOC (6%) 2 files
*.rst55 LOC (1%) 2 files
*.sh48 LOC (1%) 2 files
*.bat14 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:53