GoogleCloudPlatform / opentelemetry-operations-python
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
cfg
ini
mod
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.

main2313 LOC (29%) 49 files
test2991 LOC (37%) 32 files
generated0 LOC (0%) 0 files
build and deployment10 LOC (<1%) 1 file
other2633 LOC (33%) 62 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 49 files match defined criteria (2,313 LOC, 100.0% vs. main code):
    • 28 *.py files (1,879 LOC)
    • 6 *.cfg files (208 LOC)
    • 8 *.yaml files (173 LOC)
    • 6 *.in files (51 LOC)
    • 1 *.toml files (2 LOC)
  • " *.py" is biggest, containing 81.24% of LOC.
  • " *.toml" is smallest, containing 0.09% of LOC.


*.py1879 LOC (81%) 28 files
*.cfg208 LOC (8%) 6 files
*.yaml173 LOC (7%) 8 files
*.in51 LOC (2%) 6 files
*.toml2 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 32 files match defined criteria (2,991 LOC, 129.3% vs. main code):
    • 31 *.py files (2,982 LOC)
    • 1 *.sh files (9 LOC)
  • " *.py" is biggest, containing 99.7% of LOC.
  • " *.sh" is smallest, containing 0.3% of LOC.


*.py2982 LOC (99%) 31 files
*.sh9 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]dockerfile".
    • files with paths like ".*[.]bat".
  • 1 file matches defined criteria (10 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh10 LOC (100%) 1 file
Other Code
mod
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
  • 62 files match defined criteria (2,633 LOC, 113.8% vs. main code):
    • 19 *.json files (1,075 LOC)
    • 10 *.md files (455 LOC)
    • 5 *.rst files (250 LOC)
    • 1 *.mod files (210 LOC)
    • 6 *.py files (200 LOC)
    • 5 *.yaml files (161 LOC)
    • 6 *.ini files (147 LOC)
    • 8 *.txt files (109 LOC)
    • 1 *.toml files (18 LOC)
    • 1 *.go files (8 LOC)
  • " *.json" is biggest, containing 40.83% of LOC.
  • " *.go" is smallest, containing 0.3% of LOC.


*.json1075 LOC (40%) 19 files
*.md455 LOC (17%) 10 files
*.rst250 LOC (9%) 5 files
*.mod210 LOC (7%) 1 file
*.py200 LOC (7%) 6 files
*.yaml161 LOC (6%) 5 files
*.ini147 LOC (5%) 6 files
*.txt109 LOC (4%) 8 files
*.toml18 LOC (<1%) 1 file
*.go8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:20