mozilla / mozjpeg
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
in
txt
s
gitattributes
podspec
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.

main106765 LOC (82%) 391 files
test0 LOC (0%) 0 files
generated11989 LOC (9%) 33 files
build and deployment304 LOC (<1%) 6 files
other10813 LOC (8%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 391 files match defined criteria (106,765 LOC, 100.0% vs. main code):
    • 158 *.c files (59,233 LOC)
    • 91 *.asm files (29,370 LOC)
    • 38 *.h files (5,769 LOC)
    • 12 *.java files (3,813 LOC)
    • 6 *.css files (2,753 LOC)
    • 30 *.in files (2,160 LOC)
    • 37 *.js files (1,783 LOC)
    • 10 *.cc files (731 LOC)
    • 5 *.cmake files (667 LOC)
    • 4 *.inc files (486 LOC)
  • " *.c" is biggest, containing 55.48% of LOC.
  • " *.inc" is smallest, containing 0.46% of LOC.


*.c59233 LOC (55%) 158 files
*.asm29370 LOC (27%) 91 files
*.h5769 LOC (5%) 38 files
*.java3813 LOC (3%) 12 files
*.css2753 LOC (2%) 6 files
*.in2160 LOC (2%) 30 files
*.js1783 LOC (1%) 37 files
*.cc731 LOC (<1%) 10 files
*.cmake667 LOC (<1%) 5 files
*.inc486 LOC (<1%) 4 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 ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 33 files match defined criteria (11,989 LOC, 11.2% vs. main code):
    • 29 *.html files (11,757 LOC)
    • 4 *.h files (232 LOC)
  • " *.html" is biggest, containing 98.06% of LOC.
  • " *.h" is smallest, containing 1.94% of LOC.


*.html11757 LOC (98%) 29 files
*.h232 LOC (1%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
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 ".*[.]podspec".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (304 LOC, 0.3% vs. main code):
    • 5 *.sh files (176 LOC)
    • 1 *.podspec files (128 LOC)
  • " *.sh" is biggest, containing 57.89% of LOC.
  • " *.podspec" is smallest, containing 42.11% of LOC.


*.sh176 LOC (57%) 5 files
*.podspec128 LOC (42%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
  • 39 files match defined criteria (10,813 LOC, 10.1% vs. main code):
    • 17 *.txt files (7,487 LOC)
    • 9 *.md files (3,118 LOC)
    • 13 *.svg files (208 LOC)
  • " *.txt" is biggest, containing 69.24% of LOC.
  • " *.svg" is smallest, containing 1.92% of LOC.


*.txt7487 LOC (69%) 17 files
*.md3118 LOC (28%) 9 files
*.svg208 LOC (1%) 13 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:41