apache / apisix-dashboard
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
mod
editorconfig
cfg
ejs
mjs
gitmodules
eslintignore
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.

main25728 LOC (41%) 333 files
test34104 LOC (54%) 180 files
generated0 LOC (0%) 0 files
build and deployment70 LOC (<1%) 4 files
other2641 LOC (4%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ejs
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 333 files match defined criteria (25,728 LOC, 100.0% vs. main code):
    • 118 *.tsx files (12,003 LOC)
    • 64 *.go files (7,068 LOC)
    • 131 *.ts files (5,375 LOC)
    • 14 *.less files (829 LOC)
    • 1 *.ejs files (198 LOC)
    • 2 *.js files (117 LOC)
    • 1 *.yaml files (117 LOC)
    • 1 *.mjs files (13 LOC)
    • 1 *.toml files (8 LOC)
  • " *.tsx" is biggest, containing 46.65% of LOC.
  • " *.toml" is smallest, containing 0.03% of LOC.


*.tsx12003 LOC (46%) 118 files
*.go7068 LOC (27%) 64 files
*.ts5375 LOC (20%) 131 files
*.less829 LOC (3%) 14 files
*.ejs198 LOC (<1%) 1 file
*.js117 LOC (<1%) 2 files
*.yaml117 LOC (<1%) 1 file
*.mjs13 LOC (<1%) 1 file
*.toml8 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 ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[-]test[-].*".
  • 180 files match defined criteria (34,104 LOC, 132.6% vs. main code):
    • 114 *.go files (27,404 LOC)
    • 58 *.js files (5,983 LOC)
    • 3 *.sh files (485 LOC)
    • 5 *.yaml files (232 LOC)
  • " *.go" is biggest, containing 80.35% of LOC.
  • " *.yaml" is smallest, containing 0.68% of LOC.


*.go27404 LOC (80%) 114 files
*.js5983 LOC (17%) 58 files
*.sh485 LOC (1%) 3 files
*.yaml232 LOC (<1%) 5 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 ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (70 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh70 LOC (100%) 4 files
Other Code
mod
txt
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 ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
  • 22 files match defined criteria (2,641 LOC, 10.3% vs. main code):
    • 12 *.json files (2,175 LOC)
    • 4 *.md files (307 LOC)
    • 2 *.mod files (108 LOC)
    • 4 *.txt files (51 LOC)
  • " *.json" is biggest, containing 82.36% of LOC.
  • " *.txt" is smallest, containing 1.93% of LOC.


*.json2175 LOC (82%) 12 files
*.md307 LOC (11%) 4 files
*.mod108 LOC (4%) 2 files
*.txt51 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:55