mozilla / rhino
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
properties
txt
policy
gitattributes
mk
gitmodules
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.

main107084 LOC (30%) 454 files
test230738 LOC (65%) 4,167 files
generated0 LOC (0%) 0 files
build and deployment507 LOC (<1%) 14 files
other12176 LOC (3%) 45 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 ".*".
  • 454 files match defined criteria (107,084 LOC, 100.0% vs. main code):
    • 386 *.java files (91,673 LOC)
    • 66 *.js files (15,396 LOC)
    • 2 *.html files (15 LOC)
  • " *.java" is biggest, containing 85.61% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java91673 LOC (85%) 386 files
*.js15396 LOC (14%) 66 files
*.html15 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/jstests/.*".
  • 4167 files match defined criteria (230,738 LOC, 215.5% vs. main code):
    • 3,671 *.js files (187,232 LOC)
    • 463 *.java files (37,967 LOC)
    • 10 *.pl files (3,300 LOC)
    • 9 *.sh files (1,336 LOC)
    • 7 *.html files (560 LOC)
    • 1 *.pm files (176 LOC)
    • 1 *.mk files (71 LOC)
    • 1 *.gradle files (57 LOC)
    • 2 *.policy files (22 LOC)
    • 2 *.kt files (17 LOC)
  • " *.js" is biggest, containing 81.14% of LOC.
  • " *.kt" is smallest, containing 0.01% of LOC.


*.js187232 LOC (81%) 3,671 files
*.java37967 LOC (16%) 463 files
*.pl3300 LOC (1%) 10 files
*.sh1336 LOC (<1%) 9 files
*.html560 LOC (<1%) 7 files
*.pm176 LOC (<1%) 1 file
*.mk71 LOC (<1%) 1 file
*.gradle57 LOC (<1%) 1 file
*.policy22 LOC (<1%) 2 files
*.kt17 LOC (<1%) 2 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/[.]gitattributes".
  • 14 files match defined criteria (507 LOC, 0.5% vs. main code):
    • 13 *.gradle files (436 LOC)
    • 1 *.bat files (71 LOC)
  • " *.gradle" is biggest, containing 86% of LOC.
  • " *.bat" is smallest, containing 14% of LOC.


*.gradle436 LOC (85%) 13 files
*.bat71 LOC (14%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 45 files match defined criteria (12,176 LOC, 11.4% vs. main code):
    • 8 *.properties files (9,077 LOC)
    • 8 *.md files (1,238 LOC)
    • 13 *.java files (736 LOC)
    • 8 *.js files (632 LOC)
    • 6 *.txt files (467 LOC)
    • 1 *.html files (18 LOC)
    • 1 *.gradle files (8 LOC)
  • " *.properties" is biggest, containing 74.55% of LOC.
  • " *.gradle" is smallest, containing 0.07% of LOC.


*.properties9077 LOC (74%) 8 files
*.md1238 LOC (10%) 8 files
*.java736 LOC (6%) 13 files
*.js632 LOC (5%) 8 files
*.txt467 LOC (3%) 6 files
*.html18 LOC (<1%) 1 file
*.gradle8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:40