aliyun / alibabacloud-console-design
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
eslintignore
txt
npmrc
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.

main6551 LOC (70%) 190 files
test181 LOC (1%) 28 files
generated0 LOC (0%) 0 files
build and deployment4 LOC (<1%) 1 file
other2560 LOC (27%) 71 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 ".*".
  • 190 files match defined criteria (6,551 LOC, 100.0% vs. main code):
    • 73 *.tsx files (2,979 LOC)
    • 59 *.js files (2,200 LOC)
    • 34 *.ts files (1,074 LOC)
    • 6 *.ejs files (118 LOC)
    • 14 *.less files (89 LOC)
    • 2 *.html files (69 LOC)
    • 2 *.jsx files (22 LOC)
  • " *.tsx" is biggest, containing 45.47% of LOC.
  • " *.jsx" is smallest, containing 0.34% of LOC.


*.tsx2979 LOC (45%) 73 files
*.js2200 LOC (33%) 59 files
*.ts1074 LOC (16%) 34 files
*.ejs118 LOC (1%) 6 files
*.less89 LOC (1%) 14 files
*.html69 LOC (1%) 2 files
*.jsx22 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]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]tsx".
  • 28 files match defined criteria (181 LOC, 2.8% vs. main code):
    • 5 *.ts files (55 LOC)
    • 12 *.js files (53 LOC)
    • 5 *.jsx files (46 LOC)
    • 3 *.tsx files (24 LOC)
    • 3 *.less files (3 LOC)
  • " *.ts" is biggest, containing 30.39% of LOC.
  • " *.less" is smallest, containing 1.66% of LOC.


*.ts55 LOC (30%) 5 files
*.js53 LOC (29%) 12 files
*.jsx46 LOC (25%) 5 files
*.tsx24 LOC (13%) 3 files
*.less3 LOC (1%) 3 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (4 LOC, 0.1% vs. main code). All matches are in *.yaml files.


*.yaml4 LOC (100%) 1 file
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 ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
  • 71 files match defined criteria (2,560 LOC, 39.1% vs. main code):
    • 42 *.json files (1,586 LOC)
    • 29 *.md files (974 LOC)
  • " *.json" is biggest, containing 61.95% of LOC.
  • " *.md" is smallest, containing 38.05% of LOC.


*.json1586 LOC (61%) 42 files
*.md974 LOC (38%) 29 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:00