azure / cosmos-explorer
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
snap
patch
nuspec
editorconfig
npmrc
proj
txt
eslintignore
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.

main89717 LOC (54%) 676 files
test63640 LOC (38%) 291 files
generated67 LOC (<1%) 1 file
build and deployment336 LOC (<1%) 2 files
other10235 LOC (6%) 271 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 676 files match defined criteria (89,717 LOC, 100.0% vs. main code):
    • 275 *.tsx files (46,517 LOC)
    • 305 *.ts files (32,047 LOC)
    • 58 *.less files (9,477 LOC)
    • 16 *.html files (704 LOC)
    • 16 *.js files (638 LOC)
    • 5 *.css files (325 LOC)
    • 1 *.proj files (9 LOC)
  • " *.tsx" is biggest, containing 51.85% of LOC.
  • " *.proj" is smallest, containing 0.01% of LOC.


*.tsx46517 LOC (51%) 275 files
*.ts32047 LOC (35%) 305 files
*.less9477 LOC (10%) 58 files
*.html704 LOC (<1%) 16 files
*.js638 LOC (<1%) 16 files
*.css325 LOC (<1%) 5 files
*.proj9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[-]test[-].*".
  • 291 files match defined criteria (63,640 LOC, 70.9% vs. main code):
    • 84 *.snap files (47,128 LOC)
    • 89 *.ts files (8,162 LOC)
    • 111 *.tsx files (7,997 LOC)
    • 5 *.ps1 files (295 LOC)
    • 1 *.js files (49 LOC)
    • 1 *.html files (9 LOC)
  • " *.snap" is biggest, containing 74.05% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.snap47128 LOC (74%) 84 files
*.ts8162 LOC (12%) 89 files
*.tsx7997 LOC (12%) 111 files
*.ps1295 LOC (<1%) 5 files
*.js49 LOC (<1%) 1 file
*.html9 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".
  • 1 file matches defined criteria (67 LOC, 0.1% vs. main code). All matches are in *.json files.


*.json67 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (336 LOC, 0.4% vs. main code):
    • 1 *.js files (312 LOC)
    • 1 *.nuspec files (24 LOC)
  • " *.js" is biggest, containing 92.86% of LOC.
  • " *.nuspec" is smallest, containing 7.14% of LOC.


*.js312 LOC (92%) 1 file
*.nuspec24 LOC (7%) 1 file
Other Code
patch
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 ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]eslintignore".
  • 271 files match defined criteria (10,235 LOC, 11.4% vs. main code):
    • 18 *.json files (7,109 LOC)
    • 237 *.svg files (2,195 LOC)
    • 12 *.md files (899 LOC)
    • 2 *.patch files (30 LOC)
    • 2 *.ts files (2 LOC)
  • " *.json" is biggest, containing 69.46% of LOC.
  • " *.ts" is smallest, containing 0.02% of LOC.


*.json7109 LOC (69%) 18 files
*.svg2195 LOC (21%) 237 files
*.md899 LOC (8%) 12 files
*.patch30 LOC (<1%) 2 files
*.ts2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:35