apache / superset
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
geojson
mdx
po
txt
in
gitattributes
ini
prettierignore
htaccess
editorconfig
gitmodules
eslintignore
mako
cfg
tpl
snap
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.

main293916 LOC (57%) 2,992 files
test174100 LOC (34%) 1,315 files
generated2439 LOC (<1%) 1 file
build and deployment1371 LOC (<1%) 34 files
other38124 LOC (7%) 369 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
in
geojson
mako
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2992 files match defined criteria (293,916 LOC, 100.0% vs. main code):
    • 812 *.tsx files (106,210 LOC)
    • 967 *.py files (80,103 LOC)
    • 872 *.ts files (66,564 LOC)
    • 81 *.jsx files (19,017 LOC)
    • 168 *.js files (15,565 LOC)
    • 25 *.yaml files (2,253 LOC)
    • 8 *.less files (1,393 LOC)
    • 29 *.html files (1,290 LOC)
    • 10 *.erb files (639 LOC)
    • 1 *.toml files (371 LOC)
    • 1 *.tpl files (137 LOC)
    • 4 *.in files (79 LOC)
    • 4 *.css files (70 LOC)
    • 3 *.pug files (70 LOC)
    • 4 *.geojson files (64 LOC)
    • 1 *.rdf files (42 LOC)
    • 1 *.mako files (31 LOC)
    • 1 *.cfg files (18 LOC)
  • " *.tsx" is biggest, containing 36.14% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.tsx106210 LOC (36%) 812 files
*.py80103 LOC (27%) 967 files
*.ts66564 LOC (22%) 872 files
*.jsx19017 LOC (6%) 81 files
*.js15565 LOC (5%) 168 files
*.yaml2253 LOC (<1%) 25 files
*.less1393 LOC (<1%) 8 files
*.html1290 LOC (<1%) 29 files
*.erb639 LOC (<1%) 10 files
*.toml371 LOC (<1%) 1 file
*.tpl137 LOC (<1%) 1 file
*.in79 LOC (<1%) 4 files
*.css70 LOC (<1%) 4 files
*.pug70 LOC (<1%) 3 files
*.geojson64 LOC (<1%) 4 files
*.rdf42 LOC (<1%) 1 file
*.mako31 LOC (<1%) 1 file
*.cfg18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
  • 1315 files match defined criteria (174,100 LOC, 59.2% vs. main code):
    • 484 *.py files (80,883 LOC)
    • 344 *.tsx files (38,812 LOC)
    • 355 *.ts files (38,202 LOC)
    • 61 *.jsx files (8,226 LOC)
    • 63 *.js files (7,688 LOC)
    • 3 *.sh files (155 LOC)
    • 4 *.erb files (122 LOC)
    • 1 *.snap files (12 LOC)
  • " *.py" is biggest, containing 46.46% of LOC.
  • " *.snap" is smallest, containing 0.01% of LOC.


*.py80883 LOC (46%) 484 files
*.tsx38812 LOC (22%) 344 files
*.ts38202 LOC (21%) 355 files
*.jsx8226 LOC (4%) 61 files
*.js7688 LOC (4%) 63 files
*.sh155 LOC (<1%) 3 files
*.erb122 LOC (<1%) 4 files
*.snap12 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 paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,439 LOC, 0.8% vs. main code). All matches are in *.json files.


*.json2439 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[-]lock[.]json".
  • 34 files match defined criteria (1,371 LOC, 0.5% vs. main code):
    • 31 *.sh files (736 LOC)
    • 3 *.js files (635 LOC)
  • " *.sh" is biggest, containing 53.68% of LOC.
  • " *.js" is smallest, containing 46.32% of LOC.


*.sh736 LOC (53%) 31 files
*.js635 LOC (46%) 3 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 369 files match defined criteria (38,124 LOC, 13.0% vs. main code):
    • 109 *.md files (13,973 LOC)
    • 106 *.yaml files (10,936 LOC)
    • 80 *.json files (5,334 LOC)
    • 22 *.py files (5,150 LOC)
    • 10 *.txt files (1,704 LOC)
    • 39 *.svg files (905 LOC)
    • 2 *.ini files (75 LOC)
    • 1 *.erb files (47 LOC)
  • " *.md" is biggest, containing 36.65% of LOC.
  • " *.erb" is smallest, containing 0.12% of LOC.


*.md13973 LOC (36%) 109 files
*.yaml10936 LOC (28%) 106 files
*.json5334 LOC (13%) 80 files
*.py5150 LOC (13%) 22 files
*.txt1704 LOC (4%) 10 files
*.svg905 LOC (2%) 39 files
*.ini75 LOC (<1%) 2 files
*.erb47 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:54