epam / kubernetes-engine-samples
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
mod
tpl
cshtml
pb
proto
csproj
pyi
asax
in
properties
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.

main52064 LOC (64%) 989 files
test3249 LOC (4%) 11 files
generated2286 LOC (2%) 3 files
build and deployment946 LOC (1%) 29 files
other22591 LOC (27%) 218 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
tpl
proto
pyi
asax
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 989 files match defined criteria (52,064 LOC, 100.0% vs. main code):
    • 568 *.yaml files (26,590 LOC)
    • 278 *.tf files (15,362 LOC)
    • 49 *.py files (3,134 LOC)
    • 38 *.go files (2,856 LOC)
    • 4 *.ipynb files (1,902 LOC)
    • 6 *.cshtml files (495 LOC)
    • 3 *.ps1 files (359 LOC)
    • 12 *.cs files (343 LOC)
    • 8 *.js files (292 LOC)
    • 3 *.sql files (227 LOC)
    • 4 *.tpl files (168 LOC)
    • 4 *.proto files (96 LOC)
    • 3 *.html files (83 LOC)
    • 2 *.java files (42 LOC)
    • 1 *.pyi files (38 LOC)
    • 2 *.php files (38 LOC)
    • 1 *.css files (16 LOC)
    • 1 *.asax files (13 LOC)
    • 1 *.rb files (7 LOC)
    • 1 *.in files (3 LOC)
  • " *.yaml" is biggest, containing 51.07% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.yaml26590 LOC (51%) 568 files
*.tf15362 LOC (29%) 278 files
*.py3134 LOC (6%) 49 files
*.go2856 LOC (5%) 38 files
*.ipynb1902 LOC (3%) 4 files
*.cshtml495 LOC (<1%) 6 files
*.ps1359 LOC (<1%) 3 files
*.cs343 LOC (<1%) 12 files
*.js292 LOC (<1%) 8 files
*.sql227 LOC (<1%) 3 files
*.tpl168 LOC (<1%) 4 files
*.proto96 LOC (<1%) 4 files
*.html83 LOC (<1%) 3 files
*.java42 LOC (<1%) 2 files
*.pyi38 LOC (<1%) 1 file
*.php38 LOC (<1%) 2 files
*.css16 LOC (<1%) 1 file
*.asax13 LOC (<1%) 1 file
*.rb7 LOC (<1%) 1 file
*.in3 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 ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 11 files match defined criteria (3,249 LOC, 6.2% vs. main code):
    • 10 *.go files (3,242 LOC)
    • 1 *.py files (7 LOC)
  • " *.go" is biggest, containing 99.78% of LOC.
  • " *.py" is smallest, containing 0.22% of LOC.


*.go3242 LOC (99%) 10 files
*.py7 LOC (<1%) 1 file
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".
    • 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[!].*".
  • 3 files match defined criteria (2,286 LOC, 4.4% vs. main code):
    • 1 *.json files (2,112 LOC)
    • 2 *.py files (174 LOC)
  • " *.json" is biggest, containing 92.39% of LOC.
  • " *.py" is smallest, containing 7.61% of LOC.


*.json2112 LOC (92%) 1 file
*.py174 LOC (7%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • 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 ".*/pom[.]xml".
    • files with paths like ".*[.]csproj".
  • 29 files match defined criteria (946 LOC, 1.8% vs. main code):
    • 25 *.sh files (635 LOC)
    • 2 *.csproj files (235 LOC)
    • 2 *.xml files (76 LOC)
  • " *.sh" is biggest, containing 67.12% of LOC.
  • " *.xml" is smallest, containing 8.03% of LOC.


*.sh635 LOC (67%) 25 files
*.csproj235 LOC (24%) 2 files
*.xml76 LOC (8%) 2 files
Other Code
pb
txt
mod
tpl
properties
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[Dd]emos?/.*".
  • 218 files match defined criteria (22,591 LOC, 43.4% vs. main code):
    • 4 *.pb files (10,252 LOC)
    • 26 *.json files (6,145 LOC)
    • 102 *.md files (2,496 LOC)
    • 24 *.txt files (1,467 LOC)
    • 27 *.yaml files (1,147 LOC)
    • 19 *.tf files (417 LOC)
    • 1 *.ipynb files (300 LOC)
    • 12 *.mod files (271 LOC)
    • 2 *.tpl files (75 LOC)
    • 1 *.properties files (21 LOC)
  • " *.pb" is biggest, containing 45.38% of LOC.
  • " *.properties" is smallest, containing 0.09% of LOC.


*.pb10252 LOC (45%) 4 files
*.json6145 LOC (27%) 26 files
*.md2496 LOC (11%) 102 files
*.txt1467 LOC (6%) 24 files
*.yaml1147 LOC (5%) 27 files
*.tf417 LOC (1%) 19 files
*.ipynb300 LOC (1%) 1 file
*.mod271 LOC (1%) 12 files
*.tpl75 LOC (<1%) 2 files
*.properties21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:29