alibaba / formily
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
npmignore
ejs
styl
editorconfig
txt
eslintignore
snap
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.

main38463 LOC (62%) 553 files
test19661 LOC (31%) 70 files
generated0 LOC (0%) 0 files
build and deployment334 LOC (<1%) 6 files
other3043 LOC (4%) 94 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 553 files match defined criteria (38,463 LOC, 100.0% vs. main code):
    • 362 *.ts files (21,830 LOC)
    • 111 *.tsx files (13,024 LOC)
    • 40 *.scss files (2,098 LOC)
    • 17 *.less files (1,203 LOC)
    • 19 *.js files (239 LOC)
    • 4 *.ejs files (69 LOC)
  • " *.ts" is biggest, containing 56.76% of LOC.
  • " *.ejs" is smallest, containing 0.18% of LOC.


*.ts21830 LOC (56%) 362 files
*.tsx13024 LOC (33%) 111 files
*.scss2098 LOC (5%) 40 files
*.less1203 LOC (3%) 17 files
*.js239 LOC (<1%) 19 files
*.ejs69 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
ejs
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[.]ts".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*[.]snap".
  • 70 files match defined criteria (19,661 LOC, 51.1% vs. main code):
    • 59 *.ts files (17,324 LOC)
    • 6 *.tsx files (1,774 LOC)
    • 1 *.snap files (404 LOC)
    • 3 *.js files (140 LOC)
    • 1 *.ejs files (19 LOC)
  • " *.ts" is biggest, containing 88.11% of LOC.
  • " *.ejs" is smallest, containing 0.1% of LOC.


*.ts17324 LOC (88%) 59 files
*.tsx1774 LOC (9%) 6 files
*.snap404 LOC (2%) 1 file
*.js140 LOC (<1%) 3 files
*.ejs19 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (334 LOC, 0.9% vs. main code). All matches are in *.ts files.


*.ts334 LOC (100%) 6 files
Other Code
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 ".*/[.]npmignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
  • 94 files match defined criteria (3,043 LOC, 7.9% vs. main code):
    • 58 *.json files (1,516 LOC)
    • 35 *.md files (1,485 LOC)
    • 1 *.svg files (42 LOC)
  • " *.json" is biggest, containing 49.82% of LOC.
  • " *.svg" is smallest, containing 1.38% of LOC.


*.json1516 LOC (49%) 58 files
*.md1485 LOC (48%) 35 files
*.svg42 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:52