GoogleCloudPlatform / healthcare-data-harmonization
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
mod
proto
properties
snap
txt
cfg
eslintignore
prettierignore
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.

main30977 LOC (10%) 424 files
test82731 LOC (26%) 306 files
generated7683 LOC (2%) 1 file
build and deployment875 LOC (<1%) 40 files
other186765 LOC (60%) 896 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 424 files match defined criteria (30,977 LOC, 100.0% vs. main code):
    • 316 *.java files (21,718 LOC)
    • 57 *.go files (5,861 LOC)
    • 10 *.tsx files (971 LOC)
    • 10 *.proto files (830 LOC)
    • 13 *.py files (594 LOC)
    • 2 *.g4 files (533 LOC)
    • 9 *.ts files (318 LOC)
    • 2 *.js files (94 LOC)
    • 2 *.yaml files (29 LOC)
    • 1 *.xml files (21 LOC)
    • 1 *.css files (4 LOC)
    • 1 *.cfg files (4 LOC)
  • " *.java" is biggest, containing 70.11% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.java21718 LOC (70%) 316 files
*.go5861 LOC (18%) 57 files
*.tsx971 LOC (3%) 10 files
*.proto830 LOC (2%) 10 files
*.py594 LOC (1%) 13 files
*.g4533 LOC (1%) 2 files
*.ts318 LOC (1%) 9 files
*.js94 LOC (<1%) 2 files
*.yaml29 LOC (<1%) 2 files
*.xml21 LOC (<1%) 1 file
*.css4 LOC (<1%) 1 file
*.cfg4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*[.]snap".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test_.*".
  • 306 files match defined criteria (82,731 LOC, 267.1% vs. main code):
    • 5 *.xml files (34,431 LOC)
    • 237 *.java files (30,803 LOC)
    • 38 *.go files (14,585 LOC)
    • 8 *.snap files (1,506 LOC)
    • 4 *.py files (856 LOC)
    • 3 *.ts files (324 LOC)
    • 8 *.tsx files (166 LOC)
    • 2 *.gradle files (46 LOC)
    • 1 *.js files (14 LOC)
  • " *.xml" is biggest, containing 41.62% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.xml34431 LOC (41%) 5 files
*.java30803 LOC (37%) 237 files
*.go14585 LOC (17%) 38 files
*.snap1506 LOC (1%) 8 files
*.py856 LOC (1%) 4 files
*.ts324 LOC (<1%) 3 files
*.tsx166 LOC (<1%) 8 files
*.gradle46 LOC (<1%) 2 files
*.js14 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (7,683 LOC, 24.8% vs. main code). All matches are in *.json files.


*.json7683 LOC (100%) 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 40 files match defined criteria (875 LOC, 2.8% vs. main code):
    • 28 *.gradle files (682 LOC)
    • 11 *.sh files (172 LOC)
    • 1 *.yaml files (21 LOC)
  • " *.gradle" is biggest, containing 77.94% of LOC.
  • " *.yaml" is smallest, containing 2.4% of LOC.


*.gradle682 LOC (77%) 28 files
*.sh172 LOC (19%) 11 files
*.yaml21 LOC (2%) 1 file
Other Code
txt
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/go[.]mod".
  • 896 files match defined criteria (186,765 LOC, 602.9% vs. main code):
    • 840 *.json files (174,453 LOC)
    • 39 *.md files (10,780 LOC)
    • 1 *.ipynb files (1,213 LOC)
    • 4 *.txt files (200 LOC)
    • 10 *.mod files (117 LOC)
    • 1 *.svg files (1 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 93.41% of LOC.
  • " *.properties" is smallest, containing 0% of LOC.


*.json174453 LOC (93%) 840 files
*.md10780 LOC (5%) 39 files
*.ipynb1213 LOC (<1%) 1 file
*.txt200 LOC (<1%) 4 files
*.mod117 LOC (<1%) 10 files
*.svg1 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:21