azure / autorest.typescript
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
mjs
hbs
prettierignore
npmignore
gitattributes
txt
npmrc
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.

main34430 LOC (3%) 224 files
test64658 LOC (7%) 474 files
generated648371 LOC (72%) 5,418 files
build and deployment8107 LOC (<1%) 1 file
other138326 LOC (15%) 935 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hbs
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 224 files match defined criteria (34,430 LOC, 100.0% vs. main code):
    • 210 *.ts files (33,167 LOC)
    • 9 *.js files (993 LOC)
    • 3 *.ps1 files (138 LOC)
    • 1 *.hbs files (119 LOC)
    • 1 *.mjs files (13 LOC)
  • " *.ts" is biggest, containing 96.33% of LOC.
  • " *.mjs" is smallest, containing 0.04% of LOC.


*.ts33167 LOC (96%) 210 files
*.js993 LOC (2%) 9 files
*.ps1138 LOC (<1%) 3 files
*.hbs119 LOC (<1%) 1 file
*.mjs13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
  • 474 files match defined criteria (64,658 LOC, 187.8% vs. main code):
    • 434 *.ts files (56,700 LOC)
    • 31 *.yaml files (6,615 LOC)
    • 7 *.js files (1,274 LOC)
    • 2 *.hbs files (69 LOC)
  • " *.ts" is biggest, containing 87.69% of LOC.
  • " *.hbs" is smallest, containing 0.11% of LOC.


*.ts56700 LOC (87%) 434 files
*.yaml6615 LOC (10%) 31 files
*.js1274 LOC (1%) 7 files
*.hbs69 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 5418 files match defined criteria (648,371 LOC, 1883.2% vs. main code):
    • 4,280 *.ts files (540,818 LOC)
    • 203 *.md files (54,045 LOC)
    • 564 *.json files (43,502 LOC)
    • 71 *.js files (5,760 LOC)
    • 252 *.yaml files (3,666 LOC)
    • 48 *.mjs files (580 LOC)
  • " *.ts" is biggest, containing 83.41% of LOC.
  • " *.mjs" is smallest, containing 0.09% of LOC.


*.ts540818 LOC (83%) 4,280 files
*.md54045 LOC (8%) 203 files
*.json43502 LOC (6%) 564 files
*.js5760 LOC (<1%) 71 files
*.yaml3666 LOC (<1%) 252 files
*.mjs580 LOC (<1%) 48 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/pnpm.*[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (8,107 LOC, 23.5% vs. main code). All matches are in *.yaml files.


*.yaml8107 LOC (100%) 1 file
Other Code
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 935 files match defined criteria (138,326 LOC, 401.8% vs. main code):
    • 293 *.md files (69,185 LOC)
    • 636 *.json files (68,534 LOC)
    • 3 *.ts files (511 LOC)
    • 3 *.hbs files (96 LOC)
  • " *.md" is biggest, containing 50.02% of LOC.
  • " *.hbs" is smallest, containing 0.07% of LOC.


*.md69185 LOC (50%) 293 files
*.json68534 LOC (49%) 636 files
*.ts511 LOC (<1%) 3 files
*.hbs96 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:26