aws / aws-encryption-sdk
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
patch
csproj
mod
txt
properties
gitattributes
ini
mk
gitmodules
prettierignore
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.

main25084 LOC (52%) 175 files
test159 LOC (<1%) 12 files
generated0 LOC (0%) 0 files
build and deployment290 LOC (<1%) 11 files
other22342 LOC (46%) 236 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 ".*".
  • 175 files match defined criteria (25,084 LOC, 100.0% vs. main code):
    • 40 *.go files (13,056 LOC)
    • 65 *.rs files (5,588 LOC)
    • 20 *.cs files (2,340 LOC)
    • 18 *.java files (2,109 LOC)
    • 21 *.py files (1,528 LOC)
    • 1 *.yaml files (169 LOC)
    • 5 *.toml files (157 LOC)
    • 4 *.kts files (122 LOC)
    • 1 *.xml files (15 LOC)
  • " *.go" is biggest, containing 52.05% of LOC.
  • " *.xml" is smallest, containing 0.06% of LOC.


*.go13056 LOC (52%) 40 files
*.rs5588 LOC (22%) 65 files
*.cs2340 LOC (9%) 20 files
*.java2109 LOC (8%) 18 files
*.py1528 LOC (6%) 21 files
*.yaml169 LOC (<1%) 1 file
*.toml157 LOC (<1%) 5 files
*.kts122 LOC (<1%) 4 files
*.xml15 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
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 ".*/[Tt]ests/.*".
  • 12 files match defined criteria (159 LOC, 0.6% vs. main code):
    • 3 *.csproj files (72 LOC)
    • 1 *.sh files (23 LOC)
    • 1 *.toml files (20 LOC)
    • 4 *.py files (15 LOC)
    • 1 *.rs files (12 LOC)
    • 1 *.java files (9 LOC)
    • 1 *.cs files (8 LOC)
  • " *.csproj" is biggest, containing 45.28% of LOC.
  • " *.cs" is smallest, containing 5.03% of LOC.


*.csproj72 LOC (45%) 3 files
*.sh23 LOC (14%) 1 file
*.toml20 LOC (12%) 1 file
*.py15 LOC (9%) 4 files
*.rs12 LOC (7%) 1 file
*.java9 LOC (5%) 1 file
*.cs8 LOC (5%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]mk".
  • 11 files match defined criteria (290 LOC, 1.2% vs. main code):
    • 5 *.csproj files (113 LOC)
    • 4 *.sh files (89 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.mk files (17 LOC)
  • " *.csproj" is biggest, containing 38.97% of LOC.
  • " *.mk" is smallest, containing 5.86% of LOC.


*.csproj113 LOC (38%) 5 files
*.sh89 LOC (30%) 4 files
*.bat71 LOC (24%) 1 file
*.mk17 LOC (5%) 1 file
Other Code
patch
txt
mod
ini
csproj
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
  • 236 files match defined criteria (22,342 LOC, 89.1% vs. main code):
    • 82 *.rs files (7,660 LOC)
    • 68 *.go files (6,804 LOC)
    • 3 *.json files (3,081 LOC)
    • 29 *.cs files (2,132 LOC)
    • 10 *.patch files (1,037 LOC)
    • 24 *.md files (821 LOC)
    • 6 *.txt files (404 LOC)
    • 7 *.mod files (265 LOC)
    • 2 *.rst files (59 LOC)
    • 2 *.ini files (37 LOC)
    • 1 *.csproj files (29 LOC)
    • 2 *.properties files (13 LOC)
  • " *.rs" is biggest, containing 34.29% of LOC.
  • " *.properties" is smallest, containing 0.06% of LOC.


*.rs7660 LOC (34%) 82 files
*.go6804 LOC (30%) 68 files
*.json3081 LOC (13%) 3 files
*.cs2132 LOC (9%) 29 files
*.patch1037 LOC (4%) 10 files
*.md821 LOC (3%) 24 files
*.txt404 LOC (1%) 6 files
*.mod265 LOC (1%) 7 files
*.rst59 LOC (<1%) 2 files
*.ini37 LOC (<1%) 2 files
*.csproj29 LOC (<1%) 1 file
*.properties13 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:57