apache / cloudstack-gcestack
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
ini
mako
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.

main2130 LOC (17%) 36 files
test987 LOC (8%) 19 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other8732 LOC (73%) 58 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mako
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 36 files match defined criteria (2,130 LOC, 100.0% vs. main code):
    • 35 *.py files (2,115 LOC)
    • 1 *.mako files (15 LOC)
  • " *.py" is biggest, containing 99.3% of LOC.
  • " *.mako" is smallest, containing 0.7% of LOC.


*.py2115 LOC (99%) 35 files
*.mako15 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 ".*_tests[.].*".
    • files with paths like ".*/test_.*".
  • 19 files match defined criteria (987 LOC, 46.3% vs. main code). All matches are in *.py files.


*.py987 LOC (100%) 19 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 58 files match defined criteria (8,732 LOC, 410.0% vs. main code):
    • 53 *.json files (8,435 LOC)
    • 1 *.txt files (155 LOC)
    • 2 *.ini files (87 LOC)
    • 2 *.rst files (55 LOC)
  • " *.json" is biggest, containing 96.6% of LOC.
  • " *.rst" is smallest, containing 0.63% of LOC.


*.json8435 LOC (96%) 53 files
*.txt155 LOC (1%) 1 file
*.ini87 LOC (<1%) 2 files
*.rst55 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:46