azure / 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
prettierignore
gitattributes
editorconfig
npmrc
jsonc
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.

main161753 LOC (<1%) 857 files
test4810 LOC (<1%) 48 files
generated63882 LOC (<1%) 20 files
build and deployment50 LOC (<1%) 3 files
other26125536 LOC (99%) 213,539 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 ".*".
  • 857 files match defined criteria (161,753 LOC, 100.0% vs. main code):
    • 659 *.yaml files (136,233 LOC)
    • 111 *.ps1 files (16,468 LOC)
    • 48 *.ts files (4,564 LOC)
    • 22 *.tf files (3,360 LOC)
    • 2 *.html files (283 LOC)
    • 2 *.psm1 files (282 LOC)
    • 9 *.js files (280 LOC)
    • 1 *.css files (247 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.yaml" is biggest, containing 84.22% of LOC.
  • " *.cmd" is smallest, containing 0.02% of LOC.


*.yaml136233 LOC (84%) 659 files
*.ps116468 LOC (10%) 111 files
*.ts4564 LOC (2%) 48 files
*.tf3360 LOC (2%) 22 files
*.html283 LOC (<1%) 2 files
*.psm1282 LOC (<1%) 2 files
*.js280 LOC (<1%) 9 files
*.css247 LOC (<1%) 1 file
*.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 ".*/vitest[.].*".
    • 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_.*".
  • 48 files match defined criteria (4,810 LOC, 3.0% vs. main code):
    • 33 *.ts files (4,024 LOC)
    • 5 *.ps1 files (696 LOC)
    • 10 *.yaml files (90 LOC)
  • " *.ts" is biggest, containing 83.66% of LOC.
  • " *.yaml" is smallest, containing 1.87% of LOC.


*.ts4024 LOC (83%) 33 files
*.ps1696 LOC (14%) 5 files
*.yaml90 LOC (1%) 10 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 ".*/package[-]lock[.]json".
    • files with paths like ".*_generated[.][a-z]+".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 20 files match defined criteria (63,882 LOC, 39.5% vs. main code):
    • 7 *.json files (34,093 LOC)
    • 6 *.yaml files (25,113 LOC)
    • 7 *.svg files (4,676 LOC)
  • " *.json" is biggest, containing 53.37% of LOC.
  • " *.svg" is smallest, containing 7.32% of LOC.


*.json34093 LOC (53%) 7 files
*.yaml25113 LOC (39%) 6 files
*.svg4676 LOC (7%) 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 ".*/package[-]lock[.]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 ".*[.]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 ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
  • 213539 files match defined criteria (26,125,536 LOC, 16151.5% vs. main code):
    • 209,983 *.json files (25,923,872 LOC)
    • 2,450 *.md files (142,521 LOC)
    • 1,089 *.yaml files (53,144 LOC)
    • 8 *.svg files (4,752 LOC)
    • 3 *.cs files (1,239 LOC)
    • 6 *.txt files (8 LOC)
  • " *.json" is biggest, containing 99.23% of LOC.
  • " *.txt" is smallest, containing 0% of LOC.


*.json25923872 LOC (99%) 209,983 files
*.md142521 LOC (<1%) 2,450 files
*.yaml53144 LOC (<1%) 1,089 files
*.svg4752 LOC (<1%) 8 files
*.cs1239 LOC (<1%) 3 files
*.txt8 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 07:40