GoogleCloudPlatform / cymbal-eats
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
properties
mod
editorconfig
cmd
txt
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.

main2530 LOC (8%) 48 files
test0 LOC (0%) 0 files
generated11570 LOC (40%) 6 files
build and deployment1440 LOC (4%) 27 files
other13289 LOC (46%) 45 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 48 files match defined criteria (2,530 LOC, 100.0% vs. main code):
    • 19 *.vue files (1,143 LOC)
    • 19 *.js files (1,009 LOC)
    • 2 *.go files (306 LOC)
    • 2 *.yaml files (36 LOC)
    • 2 *.html files (30 LOC)
    • 2 *.sql files (4 LOC)
    • 2 *.css files (2 LOC)
  • " *.vue" is biggest, containing 45.18% of LOC.
  • " *.css" is smallest, containing 0.08% of LOC.


*.vue1143 LOC (45%) 19 files
*.js1009 LOC (39%) 19 files
*.go306 LOC (12%) 2 files
*.yaml36 LOC (1%) 2 files
*.html30 LOC (1%) 2 files
*.sql4 LOC (<1%) 2 files
*.css2 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 paths like ".*/package[-]lock[.]json".
  • 6 files match defined criteria (11,570 LOC, 457.3% vs. main code). All matches are in *.json files.


*.json11570 LOC (100%) 6 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 27 files match defined criteria (1,440 LOC, 56.9% vs. main code):
    • 25 *.sh files (1,112 LOC)
    • 2 *.xml files (328 LOC)
  • " *.sh" is biggest, containing 77.22% of LOC.
  • " *.xml" is smallest, containing 22.78% of LOC.


*.sh1112 LOC (77%) 25 files
*.xml328 LOC (22%) 2 files
Other Code
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/go[.]mod".
  • 45 files match defined criteria (13,289 LOC, 525.3% vs. main code):
    • 24 *.json files (11,980 LOC)
    • 12 *.md files (974 LOC)
    • 5 *.java files (235 LOC)
    • 2 *.mod files (73 LOC)
    • 2 *.properties files (27 LOC)
  • " *.json" is biggest, containing 90.15% of LOC.
  • " *.properties" is smallest, containing 0.2% of LOC.


*.json11980 LOC (90%) 24 files
*.md974 LOC (7%) 12 files
*.java235 LOC (1%) 5 files
*.mod73 LOC (<1%) 2 files
*.properties27 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:53