apache / doris-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
mdx
txt
tex
htaccess
tpl
mjs
gitmodules
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.

main20814 LOC (2%) 296 files
test893 LOC (<1%) 14 files
generated1829 LOC (<1%) 1 file
build and deployment418 LOC (<1%) 11 files
other982145 LOC (97%) 10,226 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tex
tpl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 296 files match defined criteria (20,814 LOC, 100.0% vs. main code):
    • 159 *.tsx files (8,152 LOC)
    • 39 *.scss files (3,613 LOC)
    • 32 *.css files (3,227 LOC)
    • 30 *.ts files (3,019 LOC)
    • 20 *.js files (1,120 LOC)
    • 3 *.jsx files (645 LOC)
    • 7 *.py files (510 LOC)
    • 2 *.tex files (307 LOC)
    • 1 *.m files (172 LOC)
    • 1 *.tpl files (30 LOC)
    • 1 *.mjs files (18 LOC)
    • 1 *.html files (1 LOC)
  • " *.tsx" is biggest, containing 39.17% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.tsx8152 LOC (39%) 159 files
*.scss3613 LOC (17%) 39 files
*.css3227 LOC (15%) 32 files
*.ts3019 LOC (14%) 30 files
*.js1120 LOC (5%) 20 files
*.jsx645 LOC (3%) 3 files
*.py510 LOC (2%) 7 files
*.tex307 LOC (1%) 2 files
*.m172 LOC (<1%) 1 file
*.tpl30 LOC (<1%) 1 file
*.mjs18 LOC (<1%) 1 file
*.html1 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 ".*[.]spec[.]ts".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_test[.].*".
  • 14 files match defined criteria (893 LOC, 4.3% vs. main code):
    • 12 *.ts files (846 LOC)
    • 1 *.sh files (40 LOC)
    • 1 *.js files (7 LOC)
  • " *.ts" is biggest, containing 94.74% of LOC.
  • " *.js" is smallest, containing 0.78% of LOC.


*.ts846 LOC (94%) 12 files
*.sh40 LOC (4%) 1 file
*.js7 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (1,829 LOC, 8.8% vs. main code). All matches are in *.svg files.


*.svg1829 LOC (100%) 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 11 files match defined criteria (418 LOC, 2.0% vs. main code). All matches are in *.sh files.


*.sh418 LOC (100%) 11 files
Other Code
mdx
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]htaccess".
  • 10226 files match defined criteria (982,145 LOC, 4718.7% vs. main code):
    • 10,168 *.md files (958,923 LOC)
    • 22 *.json files (14,140 LOC)
    • 22 *.svg files (5,933 LOC)
    • 12 *.mdx files (3,048 LOC)
    • 2 *.txt files (101 LOC)
  • " *.md" is biggest, containing 97.64% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.md958923 LOC (97%) 10,168 files
*.json14140 LOC (1%) 22 files
*.svg5933 LOC (<1%) 22 files
*.mdx3048 LOC (<1%) 12 files
*.txt101 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:41