aws / aws-parallelcluster-cookbook
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
txt
gitattributes
editorconfig
cfg
ini
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.

main24894 LOC (55%) 665 files
test8888 LOC (19%) 159 files
generated0 LOC (0%) 0 files
build and deployment1760 LOC (3%) 21 files
other9594 LOC (21%) 26 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 665 files match defined criteria (24,894 LOC, 100.0% vs. main code):
    • 534 *.rb files (19,215 LOC)
    • 28 *.py files (3,467 LOC)
    • 100 *.erb files (2,192 LOC)
    • 1 *.yaml files (14 LOC)
    • 2 *.cfg files (6 LOC)
  • " *.rb" is biggest, containing 77.19% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.rb19215 LOC (77%) 534 files
*.py3467 LOC (13%) 28 files
*.erb2192 LOC (8%) 100 files
*.yaml14 LOC (<1%) 1 file
*.cfg6 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 ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 159 files match defined criteria (8,888 LOC, 35.7% vs. main code):
    • 114 *.rb files (3,888 LOC)
    • 17 *.py files (3,481 LOC)
    • 15 *.yaml files (1,364 LOC)
    • 13 *.sh files (155 LOC)
  • " *.rb" is biggest, containing 43.74% of LOC.
  • " *.sh" is smallest, containing 1.74% of LOC.


*.rb3888 LOC (43%) 114 files
*.py3481 LOC (39%) 17 files
*.yaml1364 LOC (15%) 15 files
*.sh155 LOC (1%) 13 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 ".*/[.]gitattributes".
  • 21 files match defined criteria (1,760 LOC, 7.1% vs. main code). All matches are in *.sh files.


*.sh1760 LOC (100%) 21 files
Other Code
txt
ini
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 ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
  • 26 files match defined criteria (9,594 LOC, 38.5% vs. main code):
    • 8 *.txt files (6,350 LOC)
    • 5 *.md files (1,536 LOC)
    • 11 *.json files (1,494 LOC)
    • 2 *.ini files (214 LOC)
  • " *.txt" is biggest, containing 66.19% of LOC.
  • " *.ini" is smallest, containing 2.23% of LOC.


*.txt6350 LOC (66%) 8 files
*.md1536 LOC (16%) 5 files
*.json1494 LOC (15%) 11 files
*.ini214 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 21:59