aws / o3de-repo
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
lua
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.

main34481 LOC (70%) 641 files
test11208 LOC (22%) 98 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other3282 LOC (6%) 67 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 641 files match defined criteria (34,481 LOC, 100.0% vs. main code):
    • 135 *.cpp files (16,173 LOC)
    • 144 *.py files (8,580 LOC)
    • 217 *.h files (7,757 LOC)
    • 142 *.cmake files (1,663 LOC)
    • 1 *.lua files (180 LOC)
    • 1 *.html files (82 LOC)
    • 1 *.css files (46 LOC)
  • " *.cpp" is biggest, containing 46.9% of LOC.
  • " *.css" is smallest, containing 0.13% of LOC.


*.cpp16173 LOC (46%) 135 files
*.py8580 LOC (24%) 144 files
*.h7757 LOC (22%) 217 files
*.cmake1663 LOC (4%) 142 files
*.lua180 LOC (<1%) 1 file
*.html82 LOC (<1%) 1 file
*.css46 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/test_.*".
  • 98 files match defined criteria (11,208 LOC, 32.5% vs. main code):
    • 68 *.cpp files (7,996 LOC)
    • 20 *.py files (1,794 LOC)
    • 10 *.h files (1,418 LOC)
  • " *.cpp" is biggest, containing 71.34% of LOC.
  • " *.h" is smallest, containing 12.65% of LOC.


*.cpp7996 LOC (71%) 68 files
*.py1794 LOC (16%) 20 files
*.h1418 LOC (12%) 10 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 67 files match defined criteria (3,282 LOC, 9.5% vs. main code):
    • 32 *.txt files (1,652 LOC)
    • 22 *.json files (843 LOC)
    • 13 *.md files (787 LOC)
  • " *.txt" is biggest, containing 50.34% of LOC.
  • " *.md" is smallest, containing 23.98% of LOC.


*.txt1652 LOC (50%) 32 files
*.json843 LOC (25%) 22 files
*.md787 LOC (23%) 13 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 01:03