aws / aws-cryptographic-material-providers-library
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
mod
patch
csproj
properties
txt
ini
gitattributes
editorconfig
mk
in
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.

main242835 LOC (96%) 1,010 files
test992 LOC (<1%) 34 files
generated0 LOC (0%) 0 files
build and deployment787 LOC (<1%) 18 files
other7273 LOC (2%) 85 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 ".*".
  • 1010 files match defined criteria (242,835 LOC, 100.0% vs. main code):
    • 306 *.go files (131,701 LOC)
    • 282 *.java files (54,105 LOC)
    • 108 *.py files (37,464 LOC)
    • 257 *.cs files (15,450 LOC)
    • 30 *.rs files (2,438 LOC)
    • 11 *.kts files (756 LOC)
    • 2 *.yaml files (567 LOC)
    • 13 *.toml files (353 LOC)
    • 1 *.in files (1 LOC)
  • " *.go" is biggest, containing 54.23% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.go131701 LOC (54%) 306 files
*.java54105 LOC (22%) 282 files
*.py37464 LOC (15%) 108 files
*.cs15450 LOC (6%) 257 files
*.rs2438 LOC (1%) 30 files
*.kts756 LOC (<1%) 11 files
*.yaml567 LOC (<1%) 2 files
*.toml353 LOC (<1%) 13 files
*.in1 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/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 34 files match defined criteria (992 LOC, 0.4% vs. main code):
    • 4 *.java files (492 LOC)
    • 7 *.csproj files (135 LOC)
    • 18 *.py files (123 LOC)
    • 1 *.go files (113 LOC)
    • 2 *.cs files (110 LOC)
    • 2 *.rs files (19 LOC)
  • " *.java" is biggest, containing 49.6% of LOC.
  • " *.rs" is smallest, containing 1.92% of LOC.


*.java492 LOC (49%) 4 files
*.csproj135 LOC (13%) 7 files
*.py123 LOC (12%) 18 files
*.go113 LOC (11%) 1 file
*.cs110 LOC (11%) 2 files
*.rs19 LOC (1%) 2 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]mk".
  • 18 files match defined criteria (787 LOC, 0.3% vs. main code):
    • 6 *.bat files (425 LOC)
    • 6 *.csproj files (284 LOC)
    • 5 *.sh files (60 LOC)
    • 1 *.mk files (18 LOC)
  • " *.bat" is biggest, containing 54% of LOC.
  • " *.mk" is smallest, containing 2.29% of LOC.


*.bat425 LOC (54%) 6 files
*.csproj284 LOC (36%) 6 files
*.sh60 LOC (7%) 5 files
*.mk18 LOC (2%) 1 file
Other Code
patch
ini
txt
mod
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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • 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 ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
  • 85 files match defined criteria (7,273 LOC, 3.0% vs. main code):
    • 17 *.patch files (5,090 LOC)
    • 25 *.md files (803 LOC)
    • 6 *.ini files (423 LOC)
    • 8 *.txt files (413 LOC)
    • 17 *.mod files (357 LOC)
    • 4 *.rst files (116 LOC)
    • 2 *.json files (41 LOC)
    • 6 *.properties files (30 LOC)
  • " *.patch" is biggest, containing 69.98% of LOC.
  • " *.properties" is smallest, containing 0.41% of LOC.


*.patch5090 LOC (69%) 17 files
*.md803 LOC (11%) 25 files
*.ini423 LOC (5%) 6 files
*.txt413 LOC (5%) 8 files
*.mod357 LOC (4%) 17 files
*.rst116 LOC (1%) 4 files
*.json41 LOC (<1%) 2 files
*.properties30 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:49