azure / communication-ui-library
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
eslintignore
npmignore
txt
gitattributes
npmrc
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.

main89045 LOC (44%) 1,173 files
test23020 LOC (11%) 223 files
generated0 LOC (0%) 0 files
build and deployment566 LOC (<1%) 4 files
other88450 LOC (43%) 551 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1173 files match defined criteria (89,045 LOC, 100.0% vs. main code):
    • 712 *.tsx files (51,931 LOC)
    • 397 *.ts files (34,281 LOC)
    • 29 *.js files (1,565 LOC)
    • 33 *.mjs files (1,253 LOC)
    • 1 *.html files (12 LOC)
    • 1 *.css files (3 LOC)
  • " *.tsx" is biggest, containing 58.32% of LOC.
  • " *.css" is smallest, containing 0% of LOC.


*.tsx51931 LOC (58%) 712 files
*.ts34281 LOC (38%) 397 files
*.js1565 LOC (1%) 29 files
*.mjs1253 LOC (1%) 33 files
*.html12 LOC (<1%) 1 file
*.css3 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 ".*/test[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*/test[-]runner[.].*".
  • 223 files match defined criteria (23,020 LOC, 25.9% vs. main code):
    • 120 *.ts files (15,010 LOC)
    • 83 *.tsx files (7,553 LOC)
    • 17 *.js files (371 LOC)
    • 1 *.html files (63 LOC)
    • 1 *.mjs files (14 LOC)
    • 1 *.css files (9 LOC)
  • " *.ts" is biggest, containing 65.2% of LOC.
  • " *.css" is smallest, containing 0.04% of LOC.


*.ts15010 LOC (65%) 120 files
*.tsx7553 LOC (32%) 83 files
*.js371 LOC (1%) 17 files
*.html63 LOC (<1%) 1 file
*.mjs14 LOC (<1%) 1 file
*.css9 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[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pnpm.*[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 4 files match defined criteria (566 LOC, 0.6% vs. main code):
    • 2 *.yaml files (397 LOC)
    • 2 *.js files (169 LOC)
  • " *.yaml" is biggest, containing 70.14% of LOC.
  • " *.js" is smallest, containing 29.86% of LOC.


*.yaml397 LOC (70%) 2 files
*.js169 LOC (29%) 2 files
Other Code
mdx
txt
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 ".*/[.]eslintignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 551 files match defined criteria (88,450 LOC, 99.3% vs. main code):
    • 184 *.json files (68,892 LOC)
    • 90 *.tsx files (7,016 LOC)
    • 124 *.mdx files (6,082 LOC)
    • 34 *.md files (3,149 LOC)
    • 80 *.ts files (2,380 LOC)
    • 10 *.html files (333 LOC)
    • 13 *.js files (259 LOC)
    • 7 *.css files (158 LOC)
    • 4 *.svg files (130 LOC)
    • 5 *.txt files (51 LOC)
  • " *.json" is biggest, containing 77.89% of LOC.
  • " *.txt" is smallest, containing 0.06% of LOC.


*.json68892 LOC (77%) 184 files
*.tsx7016 LOC (7%) 90 files
*.mdx6082 LOC (6%) 124 files
*.md3149 LOC (3%) 34 files
*.ts2380 LOC (2%) 80 files
*.html333 LOC (<1%) 10 files
*.js259 LOC (<1%) 13 files
*.css158 LOC (<1%) 7 files
*.svg130 LOC (<1%) 4 files
*.txt51 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:11