azure / BatchExplorer
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
gitattributes
patch
plist
editorconfig
npmrc
jsonc
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.

main95295 LOC (40%) 2,453 files
test41582 LOC (17%) 456 files
generated47533 LOC (20%) 25 files
build and deployment382 LOC (<1%) 8 files
other50512 LOC (21%) 124 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 ".*".
  • 2453 files match defined criteria (95,295 LOC, 100.0% vs. main code):
    • 1,805 *.ts files (74,956 LOC)
    • 328 *.html files (8,058 LOC)
    • 247 *.scss files (7,832 LOC)
    • 61 *.tsx files (3,919 LOC)
    • 6 *.ps1 files (298 LOC)
    • 4 *.js files (148 LOC)
    • 2 *.css files (84 LOC)
  • " *.ts" is biggest, containing 78.66% of LOC.
  • " *.css" is smallest, containing 0.09% of LOC.


*.ts74956 LOC (78%) 1,805 files
*.html8058 LOC (8%) 328 files
*.scss7832 LOC (8%) 247 files
*.tsx3919 LOC (4%) 61 files
*.ps1298 LOC (<1%) 6 files
*.js148 LOC (<1%) 4 files
*.css84 LOC (<1%) 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/e2e/.*".
  • 456 files match defined criteria (41,582 LOC, 43.6% vs. main code):
    • 403 *.ts files (38,696 LOC)
    • 36 *.tsx files (2,436 LOC)
    • 1 *.html files (201 LOC)
    • 12 *.js files (192 LOC)
    • 4 *.css files (57 LOC)
  • " *.ts" is biggest, containing 93.06% of LOC.
  • " *.css" is smallest, containing 0.14% of LOC.


*.ts38696 LOC (93%) 403 files
*.tsx2436 LOC (5%) 36 files
*.html201 LOC (<1%) 1 file
*.js192 LOC (<1%) 12 files
*.css57 LOC (<1%) 4 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".
    • files with paths like ".*/generated/.*".
  • 25 files match defined criteria (47,533 LOC, 49.9% vs. main code):
    • 8 *.json files (40,635 LOC)
    • 16 *.ts files (6,894 LOC)
    • 1 *.yaml files (4 LOC)
  • " *.json" is biggest, containing 85.49% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.json40635 LOC (85%) 8 files
*.ts6894 LOC (14%) 16 files
*.yaml4 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 8 files match defined criteria (382 LOC, 0.4% vs. main code):
    • 6 *.js files (367 LOC)
    • 1 *.sh files (13 LOC)
    • 1 *.bat files (2 LOC)
  • " *.js" is biggest, containing 96.07% of LOC.
  • " *.bat" is smallest, containing 0.52% of LOC.


*.js367 LOC (96%) 6 files
*.sh13 LOC (3%) 1 file
*.bat2 LOC (<1%) 1 file
Other Code
txt
patch
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 ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]editorconfig".
  • 124 files match defined criteria (50,512 LOC, 53.0% vs. main code):
    • 75 *.json files (45,446 LOC)
    • 14 *.tsx files (2,515 LOC)
    • 13 *.md files (1,251 LOC)
    • 13 *.txt files (1,080 LOC)
    • 2 *.ts files (134 LOC)
    • 1 *.patch files (56 LOC)
    • 6 *.svg files (30 LOC)
  • " *.json" is biggest, containing 89.97% of LOC.
  • " *.svg" is smallest, containing 0.06% of LOC.


*.json45446 LOC (89%) 75 files
*.tsx2515 LOC (4%) 14 files
*.md1251 LOC (2%) 13 files
*.txt1080 LOC (2%) 13 files
*.ts134 LOC (<1%) 2 files
*.patch56 LOC (<1%) 1 file
*.svg30 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:19