GoogleCloudPlatform / dataproc-templates
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
cfg
in
ini
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.

main22266 LOC (57%) 172 files
test6347 LOC (16%) 90 files
generated0 LOC (0%) 0 files
build and deployment651 LOC (1%) 1 file
other9322 LOC (24%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 172 files match defined criteria (22,266 LOC, 100.0% vs. main code):
    • 9 *.ipynb files (8,111 LOC)
    • 67 *.java files (7,231 LOC)
    • 88 *.py files (6,721 LOC)
    • 4 *.xml files (116 LOC)
    • 2 *.yaml files (67 LOC)
    • 1 *.in files (18 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.ipynb" is biggest, containing 36.43% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.ipynb8111 LOC (36%) 9 files
*.java7231 LOC (32%) 67 files
*.py6721 LOC (30%) 88 files
*.xml116 LOC (<1%) 4 files
*.yaml67 LOC (<1%) 2 files
*.in18 LOC (<1%) 1 file
*.cfg2 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]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 90 files match defined criteria (6,347 LOC, 28.5% vs. main code):
    • 51 *.py files (4,042 LOC)
    • 39 *.java files (2,305 LOC)
  • " *.py" is biggest, containing 63.68% of LOC.
  • " *.java" is smallest, containing 36.32% of LOC.


*.py4042 LOC (63%) 51 files
*.java2305 LOC (36%) 39 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (651 LOC, 2.9% vs. main code). All matches are in *.xml files.


*.xml651 LOC (100%) 1 file
Other Code
properties
ini
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
  • 53 files match defined criteria (9,322 LOC, 41.9% vs. main code):
    • 46 *.md files (8,758 LOC)
    • 2 *.properties files (470 LOC)
    • 2 *.ini files (62 LOC)
    • 2 *.txt files (20 LOC)
    • 1 *.json files (12 LOC)
  • " *.md" is biggest, containing 93.95% of LOC.
  • " *.json" is smallest, containing 0.13% of LOC.


*.md8758 LOC (93%) 46 files
*.properties470 LOC (5%) 2 files
*.ini62 LOC (<1%) 2 files
*.txt20 LOC (<1%) 2 files
*.json12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:43