apache / cloudstack-ec2stack
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
ini
in
mako
txt
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.

main2399 LOC (31%) 57 files
test2570 LOC (33%) 17 files
generated0 LOC (0%) 0 files
build and deployment114 LOC (1%) 1 file
other2620 LOC (34%) 86 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
mako
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 57 files match defined criteria (2,399 LOC, 100.0% vs. main code):
    • 31 *.py files (1,882 LOC)
    • 24 *.xml files (438 LOC)
    • 1 *.in files (64 LOC)
    • 1 *.mako files (15 LOC)
  • " *.py" is biggest, containing 78.45% of LOC.
  • " *.mako" is smallest, containing 0.63% of LOC.


*.py1882 LOC (78%) 31 files
*.xml438 LOC (18%) 24 files
*.in64 LOC (2%) 1 file
*.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[.].*".
  • 17 files match defined criteria (2,570 LOC, 107.1% vs. main code). All matches are in *.py files.


*.py2570 LOC (100%) 17 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".
  • 1 file matches defined criteria (114 LOC, 4.8% vs. main code). All matches are in *.sh files.


*.sh114 LOC (100%) 1 file
Other Code
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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 86 files match defined criteria (2,620 LOC, 109.2% vs. main code):
    • 81 *.json files (2,189 LOC)
    • 4 *.md files (397 LOC)
    • 1 *.ini files (34 LOC)
  • " *.json" is biggest, containing 83.55% of LOC.
  • " *.ini" is smallest, containing 1.3% of LOC.


*.json2189 LOC (83%) 81 files
*.md397 LOC (15%) 4 files
*.ini34 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:46