GoogleCloudPlatform / gcsfuse
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
cfg
txt
in
mod
tpl
proto
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.

main24171 LOC (29%) 244 files
test48297 LOC (59%) 266 files
generated86 LOC (<1%) 1 file
build and deployment1639 LOC (2%) 33 files
other6604 LOC (8%) 65 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
tpl
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 244 files match defined criteria (24,171 LOC, 100.0% vs. main code):
    • 183 *.go files (20,695 LOC)
    • 32 *.py files (2,538 LOC)
    • 8 *.yaml files (651 LOC)
    • 6 *.in files (112 LOC)
    • 13 *.cfg files (97 LOC)
    • 1 *.tpl files (55 LOC)
    • 1 *.proto files (23 LOC)
  • " *.go" is biggest, containing 85.62% of LOC.
  • " *.proto" is smallest, containing 0.1% of LOC.


*.go20695 LOC (85%) 183 files
*.py2538 LOC (10%) 32 files
*.yaml651 LOC (2%) 8 files
*.in112 LOC (<1%) 6 files
*.cfg97 LOC (<1%) 13 files
*.tpl55 LOC (<1%) 1 file
*.proto23 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 266 files match defined criteria (48,297 LOC, 199.8% vs. main code):
    • 245 *.go files (44,166 LOC)
    • 11 *.py files (3,008 LOC)
    • 6 *.sh files (1,088 LOC)
    • 4 *.cfg files (35 LOC)
  • " *.go" is biggest, containing 91.45% of LOC.
  • " *.cfg" is smallest, containing 0.07% of LOC.


*.go44166 LOC (91%) 245 files
*.py3008 LOC (6%) 11 files
*.sh1088 LOC (2%) 6 files
*.cfg35 LOC (<1%) 4 files
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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 1 file matches defined criteria (86 LOC, 0.4% vs. main code). All matches are in *.py files.


*.py86 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 33 files match defined criteria (1,639 LOC, 6.8% vs. main code). All matches are in *.sh files.


*.sh1639 LOC (100%) 33 files
Other Code
txt
mod
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
  • 65 files match defined criteria (6,604 LOC, 27.3% vs. main code):
    • 13 *.py files (2,200 LOC)
    • 7 *.txt files (1,629 LOC)
    • 24 *.yaml files (838 LOC)
    • 2 *.sh files (729 LOC)
    • 7 *.json files (624 LOC)
    • 11 *.md files (484 LOC)
    • 1 *.mod files (100 LOC)
  • " *.py" is biggest, containing 33.31% of LOC.
  • " *.mod" is smallest, containing 1.51% of LOC.


*.py2200 LOC (33%) 13 files
*.txt1629 LOC (24%) 7 files
*.yaml838 LOC (12%) 24 files
*.sh729 LOC (11%) 2 files
*.json624 LOC (9%) 7 files
*.md484 LOC (7%) 11 files
*.mod100 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:21