alibaba / x-render
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
editorconfig
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.

main20725 LOC (86%) 361 files
test802 LOC (3%) 10 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other2404 LOC (10%) 47 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 ".*".
  • 361 files match defined criteria (20,725 LOC, 100.0% vs. main code):
    • 182 *.tsx files (12,194 LOC)
    • 102 *.ts files (6,431 LOC)
    • 73 *.less files (1,990 LOC)
    • 4 *.js files (110 LOC)
  • " *.tsx" is biggest, containing 58.84% of LOC.
  • " *.js" is smallest, containing 0.53% of LOC.


*.tsx12194 LOC (58%) 182 files
*.ts6431 LOC (31%) 102 files
*.less1990 LOC (9%) 73 files
*.js110 LOC (<1%) 4 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 ".*__tests__.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
  • 10 files match defined criteria (802 LOC, 3.9% vs. main code):
    • 6 *.ts files (526 LOC)
    • 4 *.tsx files (276 LOC)
  • " *.ts" is biggest, containing 65.59% of LOC.
  • " *.tsx" is smallest, containing 34.41% of LOC.


*.ts526 LOC (65%) 6 files
*.tsx276 LOC (34%) 4 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]editorconfig".
  • 47 files match defined criteria (2,404 LOC, 11.6% vs. main code):
    • 26 *.md files (1,319 LOC)
    • 21 *.json files (1,085 LOC)
  • " *.md" is biggest, containing 54.87% of LOC.
  • " *.json" is smallest, containing 45.13% of LOC.


*.md1319 LOC (54%) 26 files
*.json1085 LOC (45%) 21 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:52