mozilla / redash
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
txt
snap
ini
babelrc
mako
editorconfig
in
cfg
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.

main62395 LOC (74%) 809 files
test14057 LOC (16%) 126 files
generated0 LOC (0%) 0 files
build and deployment312 LOC (<1%) 3 files
other7008 LOC (8%) 76 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mako
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 809 files match defined criteria (62,395 LOC, 100.0% vs. main code):
    • 255 *.jsx files (23,160 LOC)
    • 174 *.py files (18,793 LOC)
    • 213 *.js files (11,459 LOC)
    • 140 *.less files (7,868 LOC)
    • 19 *.html files (937 LOC)
    • 5 *.css files (123 LOC)
    • 1 *.toml files (32 LOC)
    • 1 *.mako files (17 LOC)
    • 1 *.cfg files (6 LOC)
  • " *.jsx" is biggest, containing 37.12% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.jsx23160 LOC (37%) 255 files
*.py18793 LOC (30%) 174 files
*.js11459 LOC (18%) 213 files
*.less7868 LOC (12%) 140 files
*.html937 LOC (1%) 19 files
*.css123 LOC (<1%) 5 files
*.toml32 LOC (<1%) 1 file
*.mako17 LOC (<1%) 1 file
*.cfg6 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 126 files match defined criteria (14,057 LOC, 22.5% vs. main code):
    • 74 *.py files (8,243 LOC)
    • 16 *.snap files (4,149 LOC)
    • 34 *.js files (1,655 LOC)
    • 1 *.jsx files (8 LOC)
    • 1 *.in files (2 LOC)
  • " *.py" is biggest, containing 58.64% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py8243 LOC (58%) 74 files
*.snap4149 LOC (29%) 16 files
*.js1655 LOC (11%) 34 files
*.jsx8 LOC (<1%) 1 file
*.in2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (312 LOC, 0.5% vs. main code):
    • 2 *.js files (290 LOC)
    • 1 *.py files (22 LOC)
  • " *.js" is biggest, containing 92.95% of LOC.
  • " *.py" is smallest, containing 7.05% of LOC.


*.js290 LOC (92%) 2 files
*.py22 LOC (7%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
  • 76 files match defined criteria (7,008 LOC, 11.2% vs. main code):
    • 7 *.svg files (3,093 LOC)
    • 42 *.json files (2,166 LOC)
    • 10 *.md files (1,530 LOC)
    • 15 *.txt files (183 LOC)
    • 2 *.ini files (36 LOC)
  • " *.svg" is biggest, containing 44.14% of LOC.
  • " *.ini" is smallest, containing 0.51% of LOC.


*.svg3093 LOC (44%) 7 files
*.json2166 LOC (30%) 42 files
*.md1530 LOC (21%) 10 files
*.txt183 LOC (2%) 15 files
*.ini36 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:44