GoogleCloudPlatform / sap-deployment-automation
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
ini
po
cfg
snap
in
npmrc
eslintignore
ejs
tpl
jshintrc
babelrc
xsl
feature
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.

main11037 LOC (55%) 182 files
test2400 LOC (12%) 75 files
generated0 LOC (0%) 0 files
build and deployment174 LOC (<1%) 2 files
other6200 LOC (31%) 166 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 ".*".
  • 182 files match defined criteria (11,037 LOC, 100.0% vs. main code):
    • 174 *.tf files (10,559 LOC)
    • 5 *.yaml files (303 LOC)
    • 1 *.ps1 files (160 LOC)
    • 2 *.cfg files (15 LOC)
  • " *.tf" is biggest, containing 95.67% of LOC.
  • " *.cfg" is smallest, containing 0.14% of LOC.


*.tf10559 LOC (95%) 174 files
*.yaml303 LOC (2%) 5 files
*.ps1160 LOC (1%) 1 file
*.cfg15 LOC (<1%) 2 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.]snap".
    • files with paths like ".*[.]feature".
  • 75 files match defined criteria (2,400 LOC, 21.7% vs. main code):
    • 64 *.tf files (1,692 LOC)
    • 11 *.rb files (708 LOC)
  • " *.tf" is biggest, containing 70.5% of LOC.
  • " *.rb" is smallest, containing 29.5% of LOC.


*.tf1692 LOC (70%) 64 files
*.rb708 LOC (29%) 11 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]bat".
  • 2 files match defined criteria (174 LOC, 1.6% vs. main code). All matches are in *.sh files.


*.sh174 LOC (100%) 2 files
Other Code
ini
tpl
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 166 files match defined criteria (6,200 LOC, 56.2% vs. main code):
    • 90 *.md files (3,401 LOC)
    • 56 *.tf files (2,144 LOC)
    • 12 *.ini files (343 LOC)
    • 2 *.tpl files (114 LOC)
    • 2 *.json files (104 LOC)
    • 4 *.txt files (94 LOC)
  • " *.md" is biggest, containing 54.85% of LOC.
  • " *.txt" is smallest, containing 1.52% of LOC.


*.md3401 LOC (54%) 90 files
*.tf2144 LOC (34%) 56 files
*.ini343 LOC (5%) 12 files
*.tpl114 LOC (1%) 2 files
*.json104 LOC (1%) 2 files
*.txt94 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:36