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.

main13560 LOC (20%) 145 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment28 LOC (<1%) 4 files
other53558 LOC (79%) 519 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 ".*".
  • 145 files match defined criteria (13,560 LOC, 100.0% vs. main code):
    • 57 *.tsx files (6,474 LOC)
    • 35 *.scss files (3,454 LOC)
    • 20 *.js files (2,663 LOC)
    • 23 *.css files (613 LOC)
    • 1 *.vert files (123 LOC)
    • 2 *.mjs files (104 LOC)
    • 5 *.ts files (74 LOC)
    • 1 *.yaml files (42 LOC)
    • 1 *.frag files (13 LOC)
  • " *.tsx" is biggest, containing 47.74% of LOC.
  • " *.frag" is smallest, containing 0.1% of LOC.


*.tsx6474 LOC (47%) 57 files
*.scss3454 LOC (25%) 35 files
*.js2663 LOC (19%) 20 files
*.css613 LOC (4%) 23 files
*.vert123 LOC (<1%) 1 file
*.mjs104 LOC (<1%) 2 files
*.ts74 LOC (<1%) 5 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 4 files match defined criteria (28 LOC, 0.2% vs. main code):
    • 1 *.yml files (17 LOC)
    • 2 *.sh files (7 LOC)
    • 1 *.js files (4 LOC)
  • " *.yml" is biggest, containing 60.71% of LOC.
  • " *.js" is smallest, containing 14.29% of LOC.


*.yml17 LOC (60%) 1 file
*.sh7 LOC (25%) 2 files
*.js4 LOC (14%) 1 file
Other Code
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]htaccess".
  • 519 files match defined criteria (53,558 LOC, 395.0% vs. main code):
    • 457 *.md files (49,436 LOC)
    • 28 *.json files (3,266 LOC)
    • 3 *.patch files (669 LOC)
    • 30 *.svg files (183 LOC)
    • 1 *.txt files (4 LOC)
  • " *.md" is biggest, containing 92.3% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.md49436 LOC (92%) 457 files
*.json3266 LOC (6%) 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.


2023-08-10 22:09