aws / aws-lc
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
s
txt
patch
ml
in
properties
mod
nix
clang-format
obj
lds
clang-tidy
sed
gn
asn
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.

main370994 LOC (60%) 894 files
test89406 LOC (14%) 361 files
generated0 LOC (0%) 0 files
build and deployment568 LOC (<1%) 11 files
other147841 LOC (24%) 186 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
asn
nix
lds
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 894 files match defined criteria (370,994 LOC, 100.0% vs. main code):
    • 397 *.c files (100,702 LOC)
    • 37 *.asm files (79,348 LOC)
    • 69 *.pl files (71,712 LOC)
    • 206 *.h files (55,412 LOC)
    • 96 *.cc files (39,310 LOC)
    • 61 *.go files (22,764 LOC)
    • 11 *.py files (909 LOC)
    • 6 *.cmake files (503 LOC)
    • 1 *.asn files (120 LOC)
    • 1 *.css files (69 LOC)
    • 2 *.nix files (52 LOC)
    • 2 *.lds files (51 LOC)
    • 3 *.in files (24 LOC)
    • 2 *.inc files (18 LOC)
  • " *.c" is biggest, containing 27.14% of LOC.
  • " *.inc" is smallest, containing 0% of LOC.


*.c100702 LOC (27%) 397 files
*.asm79348 LOC (21%) 37 files
*.pl71712 LOC (19%) 69 files
*.h55412 LOC (14%) 206 files
*.cc39310 LOC (10%) 96 files
*.go22764 LOC (6%) 61 files
*.py909 LOC (<1%) 11 files
*.cmake503 LOC (<1%) 6 files
*.asn120 LOC (<1%) 1 file
*.css69 LOC (<1%) 1 file
*.nix52 LOC (<1%) 2 files
*.lds51 LOC (<1%) 2 files
*.in24 LOC (<1%) 3 files
*.inc18 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*[-]tests/.*".
  • 361 files match defined criteria (89,406 LOC, 24.1% vs. main code):
    • 118 *.cc files (60,822 LOC)
    • 48 *.go files (17,229 LOC)
    • 97 *.sh files (4,014 LOC)
    • 18 *.h files (1,818 LOC)
    • 14 *.yaml files (1,724 LOC)
    • 30 *.py files (1,393 LOC)
    • 5 *.pl files (701 LOC)
    • 2 *.asm files (662 LOC)
    • 9 *.c files (583 LOC)
    • 3 *.bat files (165 LOC)
    • 4 *.gradle files (142 LOC)
    • 7 *.cmake files (63 LOC)
    • 1 *.in files (36 LOC)
    • 2 *.ps1 files (21 LOC)
    • 1 *.toml files (19 LOC)
    • 2 *.xml files (14 LOC)
  • " *.cc" is biggest, containing 68.03% of LOC.
  • " *.xml" is smallest, containing 0.02% of LOC.


*.cc60822 LOC (68%) 118 files
*.go17229 LOC (19%) 48 files
*.sh4014 LOC (4%) 97 files
*.h1818 LOC (2%) 18 files
*.yaml1724 LOC (1%) 14 files
*.py1393 LOC (1%) 30 files
*.pl701 LOC (<1%) 5 files
*.asm662 LOC (<1%) 2 files
*.c583 LOC (<1%) 9 files
*.bat165 LOC (<1%) 3 files
*.gradle142 LOC (<1%) 4 files
*.cmake63 LOC (<1%) 7 files
*.in36 LOC (<1%) 1 file
*.ps121 LOC (<1%) 2 files
*.toml19 LOC (<1%) 1 file
*.xml14 LOC (<1%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 11 files match defined criteria (568 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh568 LOC (100%) 11 files
Other Code
txt
patch
properties
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]obj".
  • 186 files match defined criteria (147,841 LOC, 39.8% vs. main code):
    • 91 *.txt files (138,881 LOC)
    • 37 *.patch files (5,474 LOC)
    • 34 *.md files (3,133 LOC)
    • 20 *.json files (292 LOC)
    • 2 *.properties files (46 LOC)
    • 2 *.mod files (15 LOC)
  • " *.txt" is biggest, containing 93.94% of LOC.
  • " *.mod" is smallest, containing 0.01% of LOC.


*.txt138881 LOC (93%) 91 files
*.patch5474 LOC (3%) 37 files
*.md3133 LOC (2%) 34 files
*.json292 LOC (<1%) 20 files
*.properties46 LOC (<1%) 2 files
*.mod15 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:11