azure / aks-engine-azurestack
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
proto
s
mo
po
t
gitattributes
editorconfig
mk
mod
vim
cfg
rl
cmd
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.

main54246 LOC (28%) 253 files
test56510 LOC (29%) 178 files
generated0 LOC (0%) 0 files
build and deployment4073 LOC (2%) 47 files
other74537 LOC (39%) 490 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
t
mo
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 253 files match defined criteria (54,246 LOC, 100.0% vs. main code):
    • 152 *.go files (34,130 LOC)
    • 36 *.yaml files (14,385 LOC)
    • 33 *.ps1 files (4,036 LOC)
    • 8 *.t files (1,086 LOC)
    • 20 *.mo files (346 LOC)
    • 1 *.xml files (143 LOC)
    • 1 *.toml files (62 LOC)
    • 1 *.cs files (37 LOC)
    • 1 *.py files (21 LOC)
  • " *.go" is biggest, containing 62.92% of LOC.
  • " *.py" is smallest, containing 0.04% of LOC.


*.go34130 LOC (62%) 152 files
*.yaml14385 LOC (26%) 36 files
*.ps14036 LOC (7%) 33 files
*.t1086 LOC (2%) 8 files
*.mo346 LOC (<1%) 20 files
*.xml143 LOC (<1%) 1 file
*.toml62 LOC (<1%) 1 file
*.cs37 LOC (<1%) 1 file
*.py21 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • 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 ".*[-]test[-].*".
  • 178 files match defined criteria (56,510 LOC, 104.2% vs. main code):
    • 116 *.go files (54,321 LOC)
    • 18 *.sh files (1,186 LOC)
    • 41 *.yaml files (963 LOC)
    • 1 *.mk files (23 LOC)
    • 1 *.ps1 files (14 LOC)
    • 1 *.cmd files (3 LOC)
  • " *.go" is biggest, containing 96.13% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.go54321 LOC (96%) 116 files
*.sh1186 LOC (2%) 18 files
*.yaml963 LOC (1%) 41 files
*.mk23 LOC (<1%) 1 file
*.ps114 LOC (<1%) 1 file
*.cmd3 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
  • 47 files match defined criteria (4,073 LOC, 7.5% vs. main code):
    • 45 *.sh files (4,025 LOC)
    • 2 *.mk files (48 LOC)
  • " *.sh" is biggest, containing 98.82% of LOC.
  • " *.mk" is smallest, containing 1.18% of LOC.


*.sh4025 LOC (98%) 45 files
*.mk48 LOC (1%) 2 files
Other Code
txt
po
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]po".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]vim".
    • files with paths like ".*/go[.]mod".
  • 490 files match defined criteria (74,537 LOC, 137.4% vs. main code):
    • 219 *.txt files (61,304 LOC)
    • 206 *.json files (9,282 LOC)
    • 20 *.po files (2,053 LOC)
    • 40 *.md files (1,691 LOC)
    • 2 *.mod files (141 LOC)
    • 2 *.sh files (59 LOC)
    • 1 *.ps1 files (7 LOC)
  • " *.txt" is biggest, containing 82.25% of LOC.
  • " *.ps1" is smallest, containing 0.01% of LOC.


*.txt61304 LOC (82%) 219 files
*.json9282 LOC (12%) 206 files
*.po2053 LOC (2%) 20 files
*.md1691 LOC (2%) 40 files
*.mod141 LOC (<1%) 2 files
*.sh59 LOC (<1%) 2 files
*.ps17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:34