apache / apisix-website
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
patch
mjs
txt
frag
htaccess
vert
gitmodules
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.

main14484 LOC (17%) 161 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment22 LOC (<1%) 3 files
other66947 LOC (82%) 659 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vert
mjs
frag
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 161 files match defined criteria (14,484 LOC, 100.0% vs. main code):
    • 71 *.tsx files (7,164 LOC)
    • 35 *.scss files (3,567 LOC)
    • 21 *.js files (2,763 LOC)
    • 23 *.css files (613 LOC)
    • 1 *.vert files (123 LOC)
    • 2 *.mjs files (104 LOC)
    • 6 *.ts files (95 LOC)
    • 1 *.yaml files (42 LOC)
    • 1 *.frag files (13 LOC)
  • " *.tsx" is biggest, containing 49.46% of LOC.
  • " *.frag" is smallest, containing 0.09% of LOC.


*.tsx7164 LOC (49%) 71 files
*.scss3567 LOC (24%) 35 files
*.js2763 LOC (19%) 21 files
*.css613 LOC (4%) 23 files
*.vert123 LOC (<1%) 1 file
*.mjs104 LOC (<1%) 2 files
*.ts95 LOC (<1%) 6 files
*.yaml42 LOC (<1%) 1 file
*.frag13 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 3 files match defined criteria (22 LOC, 0.2% vs. main code):
    • 2 *.sh files (18 LOC)
    • 1 *.js files (4 LOC)
  • " *.sh" is biggest, containing 81.82% of LOC.
  • " *.js" is smallest, containing 18.18% of LOC.


*.sh18 LOC (81%) 2 files
*.js4 LOC (18%) 1 file
Other Code
patch
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 ".*[.]patch".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]htaccess".
  • 659 files match defined criteria (66,947 LOC, 462.2% vs. main code):
    • 597 *.md files (62,795 LOC)
    • 28 *.json files (3,296 LOC)
    • 3 *.patch files (669 LOC)
    • 30 *.svg files (183 LOC)
    • 1 *.txt files (4 LOC)
  • " *.md" is biggest, containing 93.8% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.md62795 LOC (93%) 597 files
*.json3296 LOC (4%) 28 files
*.patch669 LOC (<1%) 3 files
*.svg183 LOC (<1%) 30 files
*.txt4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:51