GoogleCloudPlatform / healthcare-federated-access-services
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
proto
txt
mod
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.

main44812 LOC (63%) 257 files
test23137 LOC (32%) 112 files
generated165 LOC (<1%) 14 files
build and deployment0 LOC (0%) 0 files
other2806 LOC (3%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 257 files match defined criteria (44,812 LOC, 100.0% vs. main code):
    • 189 *.go files (39,435 LOC)
    • 14 *.proto files (2,006 LOC)
    • 16 *.bash files (1,142 LOC)
    • 5 *.js files (998 LOC)
    • 5 *.css files (451 LOC)
    • 21 *.yaml files (418 LOC)
    • 7 *.html files (362 LOC)
  • " *.go" is biggest, containing 88% of LOC.
  • " *.html" is smallest, containing 0.81% of LOC.


*.go39435 LOC (88%) 189 files
*.proto2006 LOC (4%) 14 files
*.bash1142 LOC (2%) 16 files
*.js998 LOC (2%) 5 files
*.css451 LOC (1%) 5 files
*.yaml418 LOC (<1%) 21 files
*.html362 LOC (<1%) 7 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 112 files match defined criteria (23,137 LOC, 51.6% vs. main code):
    • 110 *.go files (23,017 LOC)
    • 2 *.html files (120 LOC)
  • " *.go" is biggest, containing 99.48% of LOC.
  • " *.html" is smallest, containing 0.52% of LOC.


*.go23017 LOC (99%) 110 files
*.html120 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "// This file was generated .*".
  • 14 files match defined criteria (165 LOC, 0.4% vs. main code). All matches are in *.go files.


*.go165 LOC (100%) 14 files
Other Code
mod
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 ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 38 files match defined criteria (2,806 LOC, 6.3% vs. main code):
    • 17 *.json files (2,243 LOC)
    • 18 *.md files (390 LOC)
    • 1 *.svg files (104 LOC)
    • 1 *.mod files (68 LOC)
    • 1 *.txt files (1 LOC)
  • " *.json" is biggest, containing 79.94% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.json2243 LOC (79%) 17 files
*.md390 LOC (13%) 18 files
*.svg104 LOC (3%) 1 file
*.mod68 LOC (2%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:13