aws / porting-advisor-for-graviton
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
in
spec
po
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.

main3440 LOC (39%) 124 files
test2213 LOC (25%) 33 files
generated0 LOC (0%) 0 files
build and deployment353 LOC (4%) 8 files
other2659 LOC (30%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 124 files match defined criteria (3,440 LOC, 100.0% vs. main code):
    • 99 *.py files (2,409 LOC)
    • 13 *.java files (482 LOC)
    • 6 *.ps1 files (225 LOC)
    • 1 *.html files (222 LOC)
    • 1 *.spec files (89 LOC)
    • 2 *.go files (10 LOC)
    • 1 *.in files (2 LOC)
    • 1 *.rb files (1 LOC)
  • " *.py" is biggest, containing 70.03% of LOC.
  • " *.rb" is smallest, containing 0.03% of LOC.


*.py2409 LOC (70%) 99 files
*.java482 LOC (14%) 13 files
*.ps1225 LOC (6%) 6 files
*.html222 LOC (6%) 1 file
*.spec89 LOC (2%) 1 file
*.go10 LOC (<1%) 2 files
*.in2 LOC (<1%) 1 file
*.rb1 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 ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 33 files match defined criteria (2,213 LOC, 64.3% vs. main code):
    • 29 *.py files (2,090 LOC)
    • 2 *.java files (90 LOC)
    • 2 *.sh files (33 LOC)
  • " *.py" is biggest, containing 94.44% of LOC.
  • " *.sh" is smallest, containing 1.49% of LOC.


*.py2090 LOC (94%) 29 files
*.java90 LOC (4%) 2 files
*.sh33 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 8 files match defined criteria (353 LOC, 10.3% vs. main code):
    • 7 *.sh files (234 LOC)
    • 1 *.xml files (119 LOC)
  • " *.sh" is biggest, containing 66.29% of LOC.
  • " *.xml" is smallest, containing 33.71% of LOC.


*.sh234 LOC (66%) 7 files
*.xml119 LOC (33%) 1 file
Other Code
txt
po
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]po".
  • 22 files match defined criteria (2,659 LOC, 77.3% vs. main code):
    • 5 *.txt files (1,899 LOC)
    • 8 *.json files (302 LOC)
    • 4 *.md files (253 LOC)
    • 1 *.po files (109 LOC)
    • 4 *.svg files (96 LOC)
  • " *.txt" is biggest, containing 71.42% of LOC.
  • " *.svg" is smallest, containing 3.61% of LOC.


*.txt1899 LOC (71%) 5 files
*.json302 LOC (11%) 8 files
*.md253 LOC (9%) 4 files
*.po109 LOC (4%) 1 file
*.svg96 LOC (3%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:47