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.

main74629 LOC (3%) 892 files
test0 LOC (0%) 0 files
generated766306 LOC (39%) 4,470 files
build and deployment77 LOC (<1%) 3 files
other1087660 LOC (56%) 5,061 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 ".*".
  • 892 files match defined criteria (74,629 LOC, 100.0% vs. main code):
    • 103 *.css files (33,347 LOC)
    • 690 *.js files (32,612 LOC)
    • 51 *.tsx files (2,791 LOC)
    • 21 *.html files (2,520 LOC)
    • 9 *.ts files (2,432 LOC)
    • 1 *.yaml files (442 LOC)
    • 15 *.py files (426 LOC)
    • 2 *.toml files (59 LOC)
  • " *.css" is biggest, containing 44.68% of LOC.
  • " *.toml" is smallest, containing 0.08% of LOC.


*.css33347 LOC (44%) 103 files
*.js32612 LOC (43%) 690 files
*.tsx2791 LOC (3%) 51 files
*.html2520 LOC (3%) 21 files
*.ts2432 LOC (3%) 9 files
*.yaml442 LOC (<1%) 1 file
*.py426 LOC (<1%) 15 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 .*".
  • 4470 files match defined criteria (766,306 LOC, 1026.8% vs. main code). All matches are in *.html files.


*.html766306 LOC (100%) 4,470 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (77 LOC, 0.1% vs. main code):
    • 2 *.sh files (68 LOC)
    • 1 *.yaml files (9 LOC)
  • " *.sh" is biggest, containing 88.31% of LOC.
  • " *.yaml" is smallest, containing 11.69% of LOC.


*.sh68 LOC (88%) 2 files
*.yaml9 LOC (11%) 1 file
Other Code
mdx
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]htaccess".
  • 5061 files match defined criteria (1,087,660 LOC, 1457.4% vs. main code):
    • 4,822 *.md files (822,003 LOC)
    • 128 *.json files (262,611 LOC)
    • 98 *.svg files (2,825 LOC)
    • 12 *.mdx files (184 LOC)
    • 1 *.txt files (37 LOC)
  • " *.md" is biggest, containing 75.58% of LOC.
  • " *.txt" is smallest, containing 0% of LOC.


*.md822003 LOC (75%) 4,822 files
*.json262611 LOC (24%) 128 files
*.svg2825 LOC (<1%) 98 files
*.mdx184 LOC (<1%) 12 files
*.txt37 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:20