mozilla / application-services
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
pro
txt
properties
plist
in
proto
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.

main140870 LOC (68%) 829 files
test23072 LOC (11%) 133 files
generated0 LOC (0%) 0 files
build and deployment3135 LOC (1%) 99 files
other38066 LOC (18%) 194 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 829 files match defined criteria (140,870 LOC, 100.0% vs. main code):
    • 516 *.rs files (119,983 LOC)
    • 44 *.py files (4,966 LOC)
    • 51 *.swift files (4,900 LOC)
    • 42 *.kt files (3,915 LOC)
    • 64 *.yaml files (3,399 LOC)
    • 83 *.toml files (1,643 LOC)
    • 12 *.sql files (814 LOC)
    • 1 *.xml files (702 LOC)
    • 5 *.groovy files (417 LOC)
    • 1 *.proto files (36 LOC)
    • 3 *.h files (25 LOC)
    • 1 *.js files (25 LOC)
    • 2 *.html files (16 LOC)
    • 1 *.css files (15 LOC)
    • 2 *.in files (8 LOC)
    • 1 *.pro files (6 LOC)
  • " *.rs" is biggest, containing 85.17% of LOC.
  • " *.pro" is smallest, containing 0% of LOC.


*.rs119983 LOC (85%) 516 files
*.py4966 LOC (3%) 44 files
*.swift4900 LOC (3%) 51 files
*.kt3915 LOC (2%) 42 files
*.yaml3399 LOC (2%) 64 files
*.toml1643 LOC (1%) 83 files
*.sql814 LOC (<1%) 12 files
*.xml702 LOC (<1%) 1 file
*.groovy417 LOC (<1%) 5 files
*.proto36 LOC (<1%) 1 file
*.h25 LOC (<1%) 3 files
*.js25 LOC (<1%) 1 file
*.html16 LOC (<1%) 2 files
*.css15 LOC (<1%) 1 file
*.in8 LOC (<1%) 2 files
*.pro6 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/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/testing[.].*".
  • 133 files match defined criteria (23,072 LOC, 16.4% vs. main code):
    • 50 *.rs files (15,129 LOC)
    • 16 *.kt files (3,513 LOC)
    • 25 *.swift files (2,141 LOC)
    • 8 *.sql files (721 LOC)
    • 10 *.py files (711 LOC)
    • 19 *.kts files (644 LOC)
    • 3 *.sh files (177 LOC)
    • 2 *.toml files (36 LOC)
  • " *.rs" is biggest, containing 65.57% of LOC.
  • " *.toml" is smallest, containing 0.16% of LOC.


*.rs15129 LOC (65%) 50 files
*.kt3513 LOC (15%) 16 files
*.swift2141 LOC (9%) 25 files
*.sql721 LOC (3%) 8 files
*.py711 LOC (3%) 10 files
*.kts644 LOC (2%) 19 files
*.sh177 LOC (<1%) 3 files
*.toml36 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
  • 99 files match defined criteria (3,135 LOC, 2.2% vs. main code):
    • 48 *.sh files (1,894 LOC)
    • 30 *.gradle files (1,146 LOC)
    • 1 *.bat files (73 LOC)
    • 20 *.xml files (22 LOC)
  • " *.sh" is biggest, containing 60.41% of LOC.
  • " *.xml" is smallest, containing 0.7% of LOC.


*.sh1894 LOC (60%) 48 files
*.gradle1146 LOC (36%) 30 files
*.bat73 LOC (2%) 1 file
*.xml22 LOC (<1%) 20 files
Other Code
txt
plist
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • 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 ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]plist".
  • 194 files match defined criteria (38,066 LOC, 27.0% vs. main code):
    • 89 *.json files (20,130 LOC)
    • 51 *.md files (12,324 LOC)
    • 23 *.rs files (4,454 LOC)
    • 7 *.txt files (548 LOC)
    • 14 *.toml files (290 LOC)
    • 5 *.sh files (207 LOC)
    • 2 *.plist files (80 LOC)
    • 3 *.properties files (33 LOC)
  • " *.json" is biggest, containing 52.88% of LOC.
  • " *.properties" is smallest, containing 0.09% of LOC.


*.json20130 LOC (52%) 89 files
*.md12324 LOC (32%) 51 files
*.rs4454 LOC (11%) 23 files
*.txt548 LOC (1%) 7 files
*.toml290 LOC (<1%) 14 files
*.sh207 LOC (<1%) 5 files
*.plist80 LOC (<1%) 2 files
*.properties33 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:48