aws / aws-encryption-sdk-python
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
ct
txt
cfg
ini
in
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.

main4758 LOC (18%) 78 files
test15729 LOC (61%) 143 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other5074 LOC (19%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 78 files match defined criteria (4,758 LOC, 100.0% vs. main code):
    • 72 *.py files (4,610 LOC)
    • 4 *.cfg files (131 LOC)
    • 2 *.in files (17 LOC)
  • " *.py" is biggest, containing 96.89% of LOC.
  • " *.in" is smallest, containing 0.36% of LOC.


*.py4610 LOC (96%) 72 files
*.cfg131 LOC (2%) 4 files
*.in17 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ct
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 143 files match defined criteria (15,729 LOC, 330.6% vs. main code):
    • 119 *.py files (15,108 LOC)
    • 20 *.ct files (571 LOC)
    • 1 *.cfg files (31 LOC)
    • 2 *.sh files (15 LOC)
    • 1 *.in files (4 LOC)
  • " *.py" is biggest, containing 96.05% of LOC.
  • " *.in" is smallest, containing 0.03% of LOC.


*.py15108 LOC (96%) 119 files
*.ct571 LOC (3%) 20 files
*.cfg31 LOC (<1%) 1 file
*.sh15 LOC (<1%) 2 files
*.in4 LOC (<1%) 1 file
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
  • 119 files match defined criteria (5,074 LOC, 106.6% vs. main code):
    • 84 *.py files (2,747 LOC)
    • 4 *.ini files (1,113 LOC)
    • 10 *.rst files (925 LOC)
    • 1 *.json files (164 LOC)
    • 16 *.txt files (75 LOC)
    • 4 *.md files (50 LOC)
  • " *.py" is biggest, containing 54.14% of LOC.
  • " *.md" is smallest, containing 0.99% of LOC.


*.py2747 LOC (54%) 84 files
*.ini1113 LOC (21%) 4 files
*.rst925 LOC (18%) 10 files
*.json164 LOC (3%) 1 file
*.txt75 LOC (1%) 16 files
*.md50 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 22:09