mozilla / readability
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
npmignore
gitattributes
txt
mjs
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.

main3142 LOC (10%) 5 files
test22112 LOC (74%) 152 files
generated3068 LOC (10%) 2 files
build and deployment0 LOC (0%) 0 files
other1508 LOC (5%) 136 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 5 files match defined criteria (3,142 LOC, 100.0% vs. main code):
    • 4 *.js files (3,092 LOC)
    • 1 *.mjs files (50 LOC)
  • " *.js" is biggest, containing 98.41% of LOC.
  • " *.mjs" is smallest, containing 1.59% of LOC.


*.js3092 LOC (98%) 4 files
*.mjs50 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 ".*/[Tt]est/.*".
  • 152 files match defined criteria (22,112 LOC, 703.8% vs. main code):
    • 146 *.html files (21,087 LOC)
    • 6 *.js files (1,025 LOC)
  • " *.html" is biggest, containing 95.36% of LOC.
  • " *.js" is smallest, containing 4.64% of LOC.


*.html21087 LOC (95%) 146 files
*.js1025 LOC (4%) 6 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" .*".
  • 2 files match defined criteria (3,068 LOC, 97.6% vs. main code). All matches are in *.html files.


*.html3068 LOC (100%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 136 files match defined criteria (1,508 LOC, 48.0% vs. main code):
    • 130 *.json files (1,273 LOC)
    • 6 *.md files (235 LOC)
  • " *.json" is biggest, containing 84.42% of LOC.
  • " *.md" is smallest, containing 15.58% of LOC.


*.json1273 LOC (84%) 130 files
*.md235 LOC (15%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:41