GoogleCloudPlatform / point-of-sale
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
txt
cmd
eslintignore
npmrc
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.

main2541 LOC (22%) 54 files
test24 LOC (<1%) 3 files
generated3705 LOC (32%) 1 file
build and deployment712 LOC (6%) 7 files
other4277 LOC (37%) 22 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 ".*".
  • 54 files match defined criteria (2,541 LOC, 100.0% vs. main code):
    • 26 *.java files (1,304 LOC)
    • 17 *.yaml files (742 LOC)
    • 4 *.vue files (394 LOC)
    • 6 *.js files (94 LOC)
    • 1 *.css files (7 LOC)
  • " *.java" is biggest, containing 51.32% of LOC.
  • " *.css" is smallest, containing 0.28% of LOC.


*.java1304 LOC (51%) 26 files
*.yaml742 LOC (29%) 17 files
*.vue394 LOC (15%) 4 files
*.js94 LOC (3%) 6 files
*.css7 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 ".*/[Tt]est/.*".
  • 3 files match defined criteria (24 LOC, 0.9% vs. main code). All matches are in *.java files.


*.java24 LOC (100%) 3 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".
  • 1 file matches defined criteria (3,705 LOC, 145.8% vs. main code). All matches are in *.json files.


*.json3705 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 ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 7 files match defined criteria (712 LOC, 28.0% vs. main code):
    • 6 *.xml files (612 LOC)
    • 1 *.sh files (100 LOC)
  • " *.xml" is biggest, containing 85.96% of LOC.
  • " *.sh" is smallest, containing 14.04% of LOC.


*.xml612 LOC (85%) 6 files
*.sh100 LOC (14%) 1 file
Other Code
properties
txt
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 ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 22 files match defined criteria (4,277 LOC, 168.3% vs. main code):
    • 3 *.json files (3,805 LOC)
    • 5 *.md files (242 LOC)
    • 3 *.xml files (195 LOC)
    • 7 *.properties files (31 LOC)
    • 4 *.txt files (4 LOC)
  • " *.json" is biggest, containing 88.96% of LOC.
  • " *.txt" is smallest, containing 0.09% of LOC.


*.json3805 LOC (88%) 3 files
*.md242 LOC (5%) 5 files
*.xml195 LOC (4%) 3 files
*.properties31 LOC (<1%) 7 files
*.txt4 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:41