apache / libcloud
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
pub
editorconfig
in
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.

main71770 LOC (34%) 245 files
test73997 LOC (35%) 974 files
generated0 LOC (0%) 0 files
build and deployment105 LOC (<1%) 6 files
other61712 LOC (29%) 1,351 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 245 files match defined criteria (71,770 LOC, 100.0% vs. main code):
    • 241 *.py files (70,998 LOC)
    • 1 *.rdf files (539 LOC)
    • 1 *.toml files (223 LOC)
    • 1 *.ps1 files (8 LOC)
    • 1 *.in files (2 LOC)
  • " *.py" is biggest, containing 98.92% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.py70998 LOC (98%) 241 files
*.rdf539 LOC (<1%) 1 file
*.toml223 LOC (<1%) 1 file
*.ps18 LOC (<1%) 1 file
*.in2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 974 files match defined criteria (73,997 LOC, 103.1% vs. main code):
    • 161 *.py files (55,608 LOC)
    • 805 *.xml files (18,335 LOC)
    • 2 *.html files (46 LOC)
    • 5 *.pub files (5 LOC)
    • 1 *.sh files (3 LOC)
  • " *.py" is biggest, containing 75.15% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.py55608 LOC (75%) 161 files
*.xml18335 LOC (24%) 805 files
*.html46 LOC (<1%) 2 files
*.pub5 LOC (<1%) 5 files
*.sh3 LOC (<1%) 1 file
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 ".*[.]bat".
  • 6 files match defined criteria (105 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh105 LOC (100%) 6 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
  • 1351 files match defined criteria (61,712 LOC, 86.0% vs. main code):
    • 1,316 *.json files (53,687 LOC)
    • 5 *.rst files (6,084 LOC)
    • 7 *.py files (905 LOC)
    • 22 *.txt files (666 LOC)
    • 1 *.ini files (370 LOC)
  • " *.json" is biggest, containing 87% of LOC.
  • " *.ini" is smallest, containing 0.6% of LOC.


*.json53687 LOC (86%) 1,316 files
*.rst6084 LOC (9%) 5 files
*.py905 LOC (1%) 7 files
*.txt666 LOC (1%) 22 files
*.ini370 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:22