aliyun / alibabacloud-console-toolkit
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
npmrc
txt
gitattributes
editorconfig
babelrc
ejs
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.

main13986 LOC (58%) 319 files
test1588 LOC (6%) 106 files
generated0 LOC (0%) 0 files
build and deployment2317 LOC (9%) 48 files
other5919 LOC (24%) 190 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 ".*".
  • 319 files match defined criteria (13,986 LOC, 100.0% vs. main code):
    • 206 *.ts files (9,443 LOC)
    • 43 *.tsx files (2,347 LOC)
    • 45 *.js files (1,450 LOC)
    • 7 *.css files (270 LOC)
    • 12 *.less files (236 LOC)
    • 1 *.ejs files (157 LOC)
    • 4 *.html files (72 LOC)
    • 1 *.jsx files (11 LOC)
  • " *.ts" is biggest, containing 67.52% of LOC.
  • " *.jsx" is smallest, containing 0.08% of LOC.


*.ts9443 LOC (67%) 206 files
*.tsx2347 LOC (16%) 43 files
*.js1450 LOC (10%) 45 files
*.css270 LOC (1%) 7 files
*.less236 LOC (1%) 12 files
*.ejs157 LOC (1%) 1 file
*.html72 LOC (<1%) 4 files
*.jsx11 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*/test[.].*".
  • 106 files match defined criteria (1,588 LOC, 11.4% vs. main code):
    • 90 *.js files (1,105 LOC)
    • 13 *.ts files (462 LOC)
    • 2 *.tsx files (13 LOC)
    • 1 *.jsx files (8 LOC)
  • " *.js" is biggest, containing 69.58% of LOC.
  • " *.jsx" is smallest, containing 0.5% of LOC.


*.js1105 LOC (69%) 90 files
*.ts462 LOC (29%) 13 files
*.tsx13 LOC (<1%) 2 files
*.jsx8 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitattributes".
  • 48 files match defined criteria (2,317 LOC, 16.6% vs. main code):
    • 45 *.ts files (2,249 LOC)
    • 1 *.js files (58 LOC)
    • 2 *.yaml files (10 LOC)
  • " *.ts" is biggest, containing 97.07% of LOC.
  • " *.yaml" is smallest, containing 0.43% of LOC.


*.ts2249 LOC (97%) 45 files
*.js58 LOC (2%) 1 file
*.yaml10 LOC (<1%) 2 files
Other Code
txt
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 ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
  • 190 files match defined criteria (5,919 LOC, 42.3% vs. main code):
    • 142 *.json files (4,766 LOC)
    • 27 *.md files (819 LOC)
    • 5 *.tsx files (166 LOC)
    • 9 *.js files (100 LOC)
    • 3 *.ts files (30 LOC)
    • 1 *.txt files (24 LOC)
    • 2 *.html files (13 LOC)
    • 1 *.less files (1 LOC)
  • " *.json" is biggest, containing 80.52% of LOC.
  • " *.less" is smallest, containing 0.02% of LOC.


*.json4766 LOC (80%) 142 files
*.md819 LOC (13%) 27 files
*.tsx166 LOC (2%) 5 files
*.js100 LOC (1%) 9 files
*.ts30 LOC (<1%) 3 files
*.txt24 LOC (<1%) 1 file
*.html13 LOC (<1%) 2 files
*.less1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:00