GoogleCloudPlatform / dfcx-scrapi
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
cfg
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.

main15939 LOC (53%) 86 files
test4823 LOC (16%) 23 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other9169 LOC (30%) 60 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 86 files match defined criteria (15,939 LOC, 100.0% vs. main code):
    • 83 *.py files (15,919 LOC)
    • 1 *.toml files (17 LOC)
    • 1 *.cfg files (2 LOC)
    • 1 *.yaml files (1 LOC)
  • " *.py" is biggest, containing 99.87% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.py15919 LOC (99%) 83 files
*.toml17 LOC (<1%) 1 file
*.cfg2 LOC (<1%) 1 file
*.yaml1 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 ".*/[Tt]ests/.*".
  • 23 files match defined criteria (4,823 LOC, 30.3% vs. main code):
    • 22 *.py files (4,805 LOC)
    • 1 *.sh files (18 LOC)
  • " *.py" is biggest, containing 99.63% of LOC.
  • " *.sh" is smallest, containing 0.37% of LOC.


*.py4805 LOC (99%) 22 files
*.sh18 LOC (<1%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
  • 60 files match defined criteria (9,169 LOC, 57.5% vs. main code):
    • 21 *.ipynb files (7,343 LOC)
    • 16 *.py files (714 LOC)
    • 4 *.md files (539 LOC)
    • 5 *.yaml files (289 LOC)
    • 6 *.txt files (198 LOC)
    • 6 *.sh files (67 LOC)
    • 1 *.json files (16 LOC)
    • 1 *.ini files (3 LOC)
  • " *.ipynb" is biggest, containing 80.09% of LOC.
  • " *.ini" is smallest, containing 0.03% of LOC.


*.ipynb7343 LOC (80%) 21 files
*.py714 LOC (7%) 16 files
*.md539 LOC (5%) 4 files
*.yaml289 LOC (3%) 5 files
*.txt198 LOC (2%) 6 files
*.sh67 LOC (<1%) 6 files
*.json16 LOC (<1%) 1 file
*.ini3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:41