alibaba / lowcode-tools
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
editorconfig
eslintignore
stylelintignore
npmignore
prettierignore
ejs
txt
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.

main8507 LOC (66%) 153 files
test93 LOC (<1%) 7 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other4192 LOC (32%) 111 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 ".*".
  • 153 files match defined criteria (8,507 LOC, 100.0% vs. main code):
    • 55 *.js files (3,840 LOC)
    • 36 *.tsx files (1,880 LOC)
    • 34 *.ts files (1,422 LOC)
    • 9 *.html files (738 LOC)
    • 2 *.jsx files (336 LOC)
    • 15 *.scss files (250 LOC)
    • 1 *.ejs files (39 LOC)
    • 1 *.less files (2 LOC)
  • " *.js" is biggest, containing 45.14% of LOC.
  • " *.less" is smallest, containing 0.02% of LOC.


*.js3840 LOC (45%) 55 files
*.tsx1880 LOC (22%) 36 files
*.ts1422 LOC (16%) 34 files
*.html738 LOC (8%) 9 files
*.jsx336 LOC (3%) 2 files
*.scss250 LOC (2%) 15 files
*.ejs39 LOC (<1%) 1 file
*.less2 LOC (<1%) 1 file
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 ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 7 files match defined criteria (93 LOC, 1.1% vs. main code):
    • 4 *.ts files (81 LOC)
    • 1 *.jsx files (8 LOC)
    • 1 *.js files (3 LOC)
    • 1 *.tsx files (1 LOC)
  • " *.ts" is biggest, containing 87.1% of LOC.
  • " *.tsx" is smallest, containing 1.08% of LOC.


*.ts81 LOC (87%) 4 files
*.jsx8 LOC (8%) 1 file
*.js3 LOC (3%) 1 file
*.tsx1 LOC (1%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
  • 111 files match defined criteria (4,192 LOC, 49.3% vs. main code):
    • 62 *.json files (3,472 LOC)
    • 30 *.md files (281 LOC)
    • 9 *.tsx files (196 LOC)
    • 3 *.ts files (155 LOC)
    • 3 *.js files (64 LOC)
    • 2 *.jsx files (22 LOC)
    • 2 *.scss files (2 LOC)
  • " *.json" is biggest, containing 82.82% of LOC.
  • " *.scss" is smallest, containing 0.05% of LOC.


*.json3472 LOC (82%) 62 files
*.md281 LOC (6%) 30 files
*.tsx196 LOC (4%) 9 files
*.ts155 LOC (3%) 3 files
*.js64 LOC (1%) 3 files
*.jsx22 LOC (<1%) 2 files
*.scss2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:54