guardian / prosemirror-elements
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
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.

main9823 LOC (23%) 133 files
test5753 LOC (13%) 36 files
generated0 LOC (0%) 0 files
build and deployment49 LOC (<1%) 2 files
other26047 LOC (62%) 23 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 ".*".
  • 133 files match defined criteria (9,823 LOC, 100.0% vs. main code):
    • 63 *.ts files (5,222 LOC)
    • 66 *.tsx files (4,574 LOC)
    • 1 *.cjs files (21 LOC)
    • 1 *.yaml files (4 LOC)
    • 2 *.js files (2 LOC)
  • " *.ts" is biggest, containing 53.16% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.ts5222 LOC (53%) 63 files
*.tsx4574 LOC (46%) 66 files
*.cjs21 LOC (<1%) 1 file
*.yaml4 LOC (<1%) 1 file
*.js2 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.]spec[.]tsx".
  • 36 files match defined criteria (5,753 LOC, 58.6% vs. main code):
    • 30 *.ts files (5,241 LOC)
    • 4 *.tsx files (469 LOC)
    • 2 *.js files (43 LOC)
  • " *.ts" is biggest, containing 91.1% of LOC.
  • " *.js" is smallest, containing 0.75% of LOC.


*.ts5241 LOC (91%) 30 files
*.tsx469 LOC (8%) 4 files
*.js43 LOC (<1%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
  • 2 files match defined criteria (49 LOC, 0.5% vs. main code):
    • 1 *.js files (33 LOC)
    • 1 *.sh files (16 LOC)
  • " *.js" is biggest, containing 67.35% of LOC.
  • " *.sh" is smallest, containing 32.65% of LOC.


*.js33 LOC (67%) 1 file
*.sh16 LOC (32%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
  • 23 files match defined criteria (26,047 LOC, 265.2% vs. main code):
    • 14 *.json files (24,121 LOC)
    • 5 *.ts files (1,039 LOC)
    • 1 *.css files (660 LOC)
    • 2 *.md files (191 LOC)
    • 1 *.html files (36 LOC)
  • " *.json" is biggest, containing 92.61% of LOC.
  • " *.html" is smallest, containing 0.14% of LOC.


*.json24121 LOC (92%) 14 files
*.ts1039 LOC (3%) 5 files
*.css660 LOC (2%) 1 file
*.md191 LOC (<1%) 2 files
*.html36 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:49