GoogleCloudPlatform / cloud-bigtable-ecosystem
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
mod
patch
hcl
cfg
tpl
rl
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.

main13802 LOC (27%) 88 files
test25094 LOC (50%) 74 files
generated0 LOC (0%) 0 files
build and deployment924 LOC (1%) 10 files
other9802 LOC (19%) 88 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 ".*".
  • 88 files match defined criteria (13,802 LOC, 100.0% vs. main code):
    • 31 *.go files (9,492 LOC)
    • 33 *.java files (3,112 LOC)
    • 10 *.yaml files (552 LOC)
    • 10 *.tf files (497 LOC)
    • 1 *.rs files (87 LOC)
    • 1 *.sql files (40 LOC)
    • 1 *.xml files (18 LOC)
    • 1 *.cfg files (4 LOC)
  • " *.go" is biggest, containing 68.77% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.go9492 LOC (68%) 31 files
*.java3112 LOC (22%) 33 files
*.yaml552 LOC (3%) 10 files
*.tf497 LOC (3%) 10 files
*.rs87 LOC (<1%) 1 file
*.sql40 LOC (<1%) 1 file
*.xml18 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.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
  • 74 files match defined criteria (25,094 LOC, 181.8% vs. main code):
    • 21 *.go files (18,146 LOC)
    • 51 *.java files (6,598 LOC)
    • 1 *.xml files (244 LOC)
    • 1 *.sh files (106 LOC)
  • " *.go" is biggest, containing 72.31% of LOC.
  • " *.sh" is smallest, containing 0.42% of LOC.


*.go18146 LOC (72%) 21 files
*.java6598 LOC (26%) 51 files
*.xml244 LOC (<1%) 1 file
*.sh106 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 ".*/pom[.]xml".
  • 10 files match defined criteria (924 LOC, 6.7% vs. main code):
    • 7 *.xml files (777 LOC)
    • 3 *.sh files (147 LOC)
  • " *.xml" is biggest, containing 84.09% of LOC.
  • " *.sh" is smallest, containing 15.91% of LOC.


*.xml777 LOC (84%) 7 files
*.sh147 LOC (15%) 3 files
Other Code
mod
patch
properties
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]patch".
  • 88 files match defined criteria (9,802 LOC, 71.0% vs. main code):
    • 64 *.json files (7,545 LOC)
    • 18 *.md files (2,080 LOC)
    • 1 *.mod files (87 LOC)
    • 1 *.patch files (66 LOC)
    • 4 *.properties files (24 LOC)
  • " *.json" is biggest, containing 76.97% of LOC.
  • " *.properties" is smallest, containing 0.24% of LOC.


*.json7545 LOC (76%) 64 files
*.md2080 LOC (21%) 18 files
*.mod87 LOC (<1%) 1 file
*.patch66 LOC (<1%) 1 file
*.properties24 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:09