GoogleCloudPlatform / dataplex-labs
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
properties
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.

main10741 LOC (51%) 93 files
test2206 LOC (10%) 10 files
generated0 LOC (0%) 0 files
build and deployment258 LOC (1%) 11 files
other7829 LOC (37%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 93 files match defined criteria (10,741 LOC, 100.0% vs. main code):
    • 52 *.py files (7,149 LOC)
    • 20 *.tf files (2,493 LOC)
    • 18 *.yaml files (1,077 LOC)
    • 3 *.sql files (22 LOC)
  • " *.py" is biggest, containing 66.56% of LOC.
  • " *.sql" is smallest, containing 0.2% of LOC.


*.py7149 LOC (66%) 52 files
*.tf2493 LOC (23%) 20 files
*.yaml1077 LOC (10%) 18 files
*.sql22 LOC (<1%) 3 files
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 ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 10 files match defined criteria (2,206 LOC, 20.5% vs. main code). All matches are in *.py files.


*.py2206 LOC (100%) 10 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 11 files match defined criteria (258 LOC, 2.4% vs. main code). All matches are in *.sh files.


*.sh258 LOC (100%) 11 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
  • 61 files match defined criteria (7,829 LOC, 72.9% vs. main code):
    • 54 *.md files (7,636 LOC)
    • 2 *.json files (161 LOC)
    • 1 *.properties files (20 LOC)
    • 4 *.txt files (12 LOC)
  • " *.md" is biggest, containing 97.53% of LOC.
  • " *.txt" is smallest, containing 0.15% of LOC.


*.md7636 LOC (97%) 54 files
*.json161 LOC (2%) 2 files
*.properties20 LOC (<1%) 1 file
*.txt12 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:50