azure / azure-resource-manager-schemas
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
csproj
gitmodules
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.

main4882 LOC (<1%) 33 files
test189 LOC (<1%) 2 files
generated7366 LOC (<1%) 2 files
build and deployment17 LOC (<1%) 1 file
other3683370 LOC (99%) 2,385 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 ".*".
  • 33 files match defined criteria (4,882 LOC, 100.0% vs. main code):
    • 31 *.ts files (4,729 LOC)
    • 2 *.cs files (153 LOC)
  • " *.ts" is biggest, containing 96.87% of LOC.
  • " *.cs" is smallest, containing 3.13% of LOC.


*.ts4729 LOC (96%) 31 files
*.cs153 LOC (3%) 2 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]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 2 files match defined criteria (189 LOC, 3.9% vs. main code). All matches are in *.ts files.


*.ts189 LOC (100%) 2 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".
  • 2 files match defined criteria (7,366 LOC, 150.9% vs. main code). All matches are in *.json files.


*.json7366 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (17 LOC, 0.3% vs. main code). All matches are in *.csproj files.


*.csproj17 LOC (100%) 1 file
Other Code
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 ".*/[.]gitignore".
  • 2385 files match defined criteria (3,683,370 LOC, 75448.0% vs. main code):
    • 2,382 *.json files (3,683,254 LOC)
    • 3 *.md files (116 LOC)
  • " *.json" is biggest, containing 100% of LOC.
  • " *.md" is smallest, containing 0% of LOC.


*.json3683254 LOC (99%) 2,382 files
*.md116 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:13