azure / perf-tests
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
proto
s
txt
mod
editorconfig
gitattributes
patch
cfg
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.

main58712 LOC (70%) 524 files
test6701 LOC (8%) 48 files
generated0 LOC (0%) 0 files
build and deployment435 LOC (<1%) 16 files
other17209 LOC (20%) 71 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 ".*".
  • 524 files match defined criteria (58,712 LOC, 100.0% vs. main code):
    • 284 *.yaml files (30,436 LOC)
    • 219 *.go files (25,763 LOC)
    • 15 *.py files (2,071 LOC)
    • 1 *.js files (295 LOC)
    • 1 *.html files (69 LOC)
    • 1 *.css files (45 LOC)
    • 3 *.sql files (33 LOC)
  • " *.yaml" is biggest, containing 51.84% of LOC.
  • " *.sql" is smallest, containing 0.06% of LOC.


*.yaml30436 LOC (51%) 284 files
*.go25763 LOC (43%) 219 files
*.py2071 LOC (3%) 15 files
*.js295 LOC (<1%) 1 file
*.html69 LOC (<1%) 1 file
*.css45 LOC (<1%) 1 file
*.sql33 LOC (<1%) 3 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test[-]data/.*".
  • 48 files match defined criteria (6,701 LOC, 11.4% vs. main code):
    • 37 *.go files (6,296 LOC)
    • 8 *.yaml files (243 LOC)
    • 2 *.py files (144 LOC)
    • 1 *.sh files (18 LOC)
  • " *.go" is biggest, containing 93.96% of LOC.
  • " *.sh" is smallest, containing 0.27% of LOC.


*.go6296 LOC (93%) 37 files
*.yaml243 LOC (3%) 8 files
*.py144 LOC (2%) 2 files
*.sh18 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 16 files match defined criteria (435 LOC, 0.7% vs. main code). All matches are in *.sh files.


*.sh435 LOC (100%) 16 files
Other Code
mod
txt
patch
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 ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
  • 71 files match defined criteria (17,209 LOC, 29.3% vs. main code):
    • 5 *.json files (14,361 LOC)
    • 31 *.md files (1,370 LOC)
    • 15 *.mod files (752 LOC)
    • 17 *.txt files (586 LOC)
    • 2 *.yaml files (75 LOC)
    • 1 *.patch files (65 LOC)
  • " *.json" is biggest, containing 83.45% of LOC.
  • " *.patch" is smallest, containing 0.38% of LOC.


*.json14361 LOC (83%) 5 files
*.md1370 LOC (7%) 31 files
*.mod752 LOC (4%) 15 files
*.txt586 LOC (3%) 17 files
*.yaml75 LOC (<1%) 2 files
*.patch65 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:18