azure / typespec-azure
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
mdx
mjs
gitattributes
editorconfig
npmrc
props
txt
gitmodules
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.

main25129 LOC (17%) 215 files
test51343 LOC (35%) 255 files
generated0 LOC (0%) 0 files
build and deployment9 LOC (<1%) 1 file
other68020 LOC (47%) 316 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 215 files match defined criteria (25,129 LOC, 100.0% vs. main code):
    • 177 *.ts files (23,337 LOC)
    • 11 *.js files (733 LOC)
    • 12 *.yaml files (301 LOC)
    • 2 *.py files (200 LOC)
    • 5 *.tsx files (174 LOC)
    • 1 *.ps1 files (155 LOC)
    • 3 *.css files (142 LOC)
    • 2 *.mjs files (56 LOC)
    • 1 *.html files (25 LOC)
    • 1 *.props files (6 LOC)
  • " *.ts" is biggest, containing 92.87% of LOC.
  • " *.props" is smallest, containing 0.02% of LOC.


*.ts23337 LOC (92%) 177 files
*.js733 LOC (2%) 11 files
*.yaml301 LOC (1%) 12 files
*.py200 LOC (<1%) 2 files
*.tsx174 LOC (<1%) 5 files
*.ps1155 LOC (<1%) 1 file
*.css142 LOC (<1%) 3 files
*.mjs56 LOC (<1%) 2 files
*.html25 LOC (<1%) 1 file
*.props6 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/vitest[.].*".
    • 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 ".*/[Ss]pecs/.*".
    • files with paths like ".*/e2e/.*".
  • 255 files match defined criteria (51,343 LOC, 204.3% vs. main code):
    • 254 *.ts files (51,196 LOC)
    • 1 *.mjs files (147 LOC)
  • " *.ts" is biggest, containing 99.71% of LOC.
  • " *.mjs" is smallest, containing 0.29% of LOC.


*.ts51196 LOC (99%) 254 files
*.mjs147 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 ".*/pnpm.*[.]ya?ml".
    • 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 ".*/[.]gitattributes".
  • 1 file matches defined criteria (9 LOC, 0.0% vs. main code). All matches are in *.yaml files.


*.yaml9 LOC (100%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdx".
  • 316 files match defined criteria (68,020 LOC, 270.7% vs. main code):
    • 263 *.json files (52,520 LOC)
    • 30 *.md files (7,820 LOC)
    • 13 *.yaml files (5,895 LOC)
    • 8 *.ts files (1,741 LOC)
    • 1 *.svg files (23 LOC)
    • 1 *.js files (21 LOC)
  • " *.json" is biggest, containing 77.21% of LOC.
  • " *.js" is smallest, containing 0.03% of LOC.


*.json52520 LOC (77%) 263 files
*.md7820 LOC (11%) 30 files
*.yaml5895 LOC (8%) 13 files
*.ts1741 LOC (2%) 8 files
*.svg23 LOC (<1%) 1 file
*.js21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:59