apache / pulsar-site
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
htaccess
editorconfig
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.

main142095 LOC (4%) 1,462 files
test0 LOC (0%) 0 files
generated1515063 LOC (48%) 8,325 files
build and deployment251 LOC (<1%) 5 files
other1481579 LOC (47%) 6,891 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1462 files match defined criteria (142,095 LOC, 100.0% vs. main code):
    • 171 *.css files (65,192 LOC)
    • 1,117 *.js files (59,707 LOC)
    • 61 *.html files (7,928 LOC)
    • 80 *.tsx files (4,279 LOC)
    • 13 *.ts files (3,567 LOC)
    • 1 *.yaml files (739 LOC)
    • 17 *.py files (624 LOC)
    • 2 *.toml files (59 LOC)
  • " *.css" is biggest, containing 45.88% of LOC.
  • " *.toml" is smallest, containing 0.04% of LOC.


*.css65192 LOC (45%) 171 files
*.js59707 LOC (42%) 1,117 files
*.html7928 LOC (5%) 61 files
*.tsx4279 LOC (3%) 80 files
*.ts3567 LOC (2%) 13 files
*.yaml739 LOC (<1%) 1 file
*.py624 LOC (<1%) 17 files
*.toml59 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 8325 files match defined criteria (1,515,063 LOC, 1066.2% vs. main code). All matches are in *.html files.


*.html1515063 LOC (100%) 8,325 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 5 files match defined criteria (251 LOC, 0.2% vs. main code):
    • 4 *.sh files (242 LOC)
    • 1 *.yaml files (9 LOC)
  • " *.sh" is biggest, containing 96.41% of LOC.
  • " *.yaml" is smallest, containing 3.59% of LOC.


*.sh242 LOC (96%) 4 files
*.yaml9 LOC (3%) 1 file
Other Code
mdx
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 6891 files match defined criteria (1,481,579 LOC, 1042.7% vs. main code):
    • 6,298 *.md files (1,044,232 LOC)
    • 338 *.json files (431,429 LOC)
    • 240 *.svg files (5,561 LOC)
    • 13 *.mdx files (245 LOC)
    • 2 *.txt files (112 LOC)
  • " *.md" is biggest, containing 70.48% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.md1044232 LOC (70%) 6,298 files
*.json431429 LOC (29%) 338 files
*.svg5561 LOC (<1%) 240 files
*.mdx245 LOC (<1%) 13 files
*.txt112 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:35