aws / aws-nitro-enclaves-cli
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
spec
gitattributes
txt
hbs
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.

main18802 LOC (81%) 49 files
test3244 LOC (14%) 10 files
generated0 LOC (0%) 0 files
build and deployment104 LOC (<1%) 3 files
other997 LOC (4%) 16 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 49 files match defined criteria (18,802 LOC, 100.0% vs. main code):
    • 30 *.rs files (8,774 LOC)
    • 1 *.html files (7,392 LOC)
    • 2 *.c files (1,402 LOC)
    • 3 *.spec files (761 LOC)
    • 4 *.h files (224 LOC)
    • 6 *.toml files (128 LOC)
    • 1 *.hbs files (65 LOC)
    • 2 *.yaml files (56 LOC)
  • " *.rs" is biggest, containing 46.67% of LOC.
  • " *.yaml" is smallest, containing 0.3% of LOC.


*.rs8774 LOC (46%) 30 files
*.html7392 LOC (39%) 1 file
*.c1402 LOC (7%) 2 files
*.spec761 LOC (4%) 3 files
*.h224 LOC (1%) 4 files
*.toml128 LOC (<1%) 6 files
*.hbs65 LOC (<1%) 1 file
*.yaml56 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 10 files match defined criteria (3,244 LOC, 17.3% vs. main code):
    • 4 *.rs files (2,751 LOC)
    • 3 *.py files (302 LOC)
    • 2 *.sh files (137 LOC)
    • 1 *.c files (54 LOC)
  • " *.rs" is biggest, containing 84.8% of LOC.
  • " *.c" is smallest, containing 1.66% of LOC.


*.rs2751 LOC (84%) 4 files
*.py302 LOC (9%) 3 files
*.sh137 LOC (4%) 2 files
*.c54 LOC (1%) 1 file
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 ".*/[.]gitattributes".
  • 3 files match defined criteria (104 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh104 LOC (100%) 3 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 16 files match defined criteria (997 LOC, 5.3% vs. main code):
    • 5 *.rs files (564 LOC)
    • 8 *.md files (404 LOC)
    • 1 *.toml files (17 LOC)
    • 2 *.sh files (12 LOC)
  • " *.rs" is biggest, containing 56.57% of LOC.
  • " *.sh" is smallest, containing 1.2% of LOC.


*.rs564 LOC (56%) 5 files
*.md404 LOC (40%) 8 files
*.toml17 LOC (1%) 1 file
*.sh12 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:07