azure / mabhard-azure-rest-api-specs
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
cmd
gitattributes
editorconfig
npmrc
jsonc
mjs
prettierignore
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.

main104845 LOC (<1%) 491 files
test1996 LOC (<1%) 26 files
generated30481 LOC (<1%) 13 files
build and deployment50 LOC (<1%) 3 files
other23592949 LOC (99%) 191,816 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 491 files match defined criteria (104,845 LOC, 100.0% vs. main code):
    • 329 *.yaml files (84,993 LOC)
    • 109 *.ps1 files (14,818 LOC)
    • 22 *.tf files (3,360 LOC)
    • 18 *.ts files (753 LOC)
    • 2 *.html files (283 LOC)
    • 2 *.psm1 files (282 LOC)
    • 1 *.css files (247 LOC)
    • 5 *.js files (73 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.yaml" is biggest, containing 81.07% of LOC.
  • " *.cmd" is smallest, containing 0.03% of LOC.


*.yaml84993 LOC (81%) 329 files
*.ps114818 LOC (14%) 109 files
*.tf3360 LOC (3%) 22 files
*.ts753 LOC (<1%) 18 files
*.html283 LOC (<1%) 2 files
*.psm1282 LOC (<1%) 2 files
*.css247 LOC (<1%) 1 file
*.js73 LOC (<1%) 5 files
*.cmd36 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 ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
  • 26 files match defined criteria (1,996 LOC, 1.9% vs. main code):
    • 14 *.ts files (1,281 LOC)
    • 5 *.ps1 files (662 LOC)
    • 7 *.yaml files (53 LOC)
  • " *.ts" is biggest, containing 64.18% of LOC.
  • " *.yaml" is smallest, containing 2.66% of LOC.


*.ts1281 LOC (64%) 14 files
*.ps1662 LOC (33%) 5 files
*.yaml53 LOC (2%) 7 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 ".*_generated[.][a-z]+".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 13 files match defined criteria (30,481 LOC, 29.1% vs. main code):
    • 3 *.json files (14,348 LOC)
    • 3 *.yaml files (11,457 LOC)
    • 7 *.svg files (4,676 LOC)
  • " *.json" is biggest, containing 47.07% of LOC.
  • " *.svg" is smallest, containing 15.34% of LOC.


*.json14348 LOC (47%) 3 files
*.yaml11457 LOC (37%) 3 files
*.svg4676 LOC (15%) 7 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (50 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh50 LOC (100%) 3 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
  • 191816 files match defined criteria (23,592,949 LOC, 22502.7% vs. main code):
    • 188,696 *.json files (23,398,107 LOC)
    • 2,417 *.md files (150,725 LOC)
    • 686 *.yaml files (34,043 LOC)
    • 8 *.svg files (4,752 LOC)
    • 6 *.txt files (4,083 LOC)
    • 3 *.cs files (1,239 LOC)
  • " *.json" is biggest, containing 99.17% of LOC.
  • " *.cs" is smallest, containing 0.01% of LOC.


*.json23398107 LOC (99%) 188,696 files
*.md150725 LOC (<1%) 2,417 files
*.yaml34043 LOC (<1%) 686 files
*.svg4752 LOC (<1%) 8 files
*.txt4083 LOC (<1%) 6 files
*.cs1239 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 01:09