azure / azure-mcp
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
cmd
props
txt
csproj
gitattributes
plist
editorconfig
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.

main23224 LOC (65%) 282 files
test3345 LOC (9%) 36 files
generated2805 LOC (7%) 2 files
build and deployment105 LOC (<1%) 2 files
other6179 LOC (17%) 41 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 282 files match defined criteria (23,224 LOC, 100.0% vs. main code):
    • 104 *.ps1 files (15,296 LOC)
    • 168 *.cs files (7,048 LOC)
    • 3 *.js files (283 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.css files (247 LOC)
    • 2 *.props files (51 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.ps1" is biggest, containing 65.86% of LOC.
  • " *.cmd" is smallest, containing 0.16% of LOC.


*.ps115296 LOC (65%) 104 files
*.cs7048 LOC (30%) 168 files
*.js283 LOC (1%) 3 files
*.psm1263 LOC (1%) 1 file
*.css247 LOC (1%) 1 file
*.props51 LOC (<1%) 2 files
*.cmd36 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]tests[.].*".
  • 36 files match defined criteria (3,345 LOC, 14.4% vs. main code):
    • 32 *.cs files (2,771 LOC)
    • 3 *.ps1 files (539 LOC)
    • 1 *.csproj files (35 LOC)
  • " *.cs" is biggest, containing 82.84% of LOC.
  • " *.csproj" is smallest, containing 1.05% of LOC.


*.cs2771 LOC (82%) 32 files
*.ps1539 LOC (16%) 3 files
*.csproj35 LOC (1%) 1 file
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 (2,805 LOC, 12.1% vs. main code). All matches are in *.json files.


*.json2805 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 ".*[.]csproj".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (105 LOC, 0.5% vs. main code):
    • 1 *.csproj files (81 LOC)
    • 1 *.sh files (24 LOC)
  • " *.csproj" is biggest, containing 77.14% of LOC.
  • " *.sh" is smallest, containing 22.86% of LOC.


*.csproj81 LOC (77%) 1 file
*.sh24 LOC (22%) 1 file
Other Code
plist
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 ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 41 files match defined criteria (6,179 LOC, 26.6% vs. main code):
    • 16 *.json files (3,048 LOC)
    • 22 *.md files (3,042 LOC)
    • 1 *.svg files (76 LOC)
    • 1 *.plist files (12 LOC)
    • 1 *.txt files (1 LOC)
  • " *.json" is biggest, containing 49.33% of LOC.
  • " *.txt" is smallest, containing 0.02% of LOC.


*.json3048 LOC (49%) 16 files
*.md3042 LOC (49%) 22 files
*.svg76 LOC (1%) 1 file
*.plist12 LOC (<1%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:27