mozilla / cbindgen
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
gitattributes
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.

main12122 LOC (25%) 51 files
test34000 LOC (72%) 1,377 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other995 LOC (2%) 8 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 ".*".
  • 51 files match defined criteria (12,122 LOC, 100.0% vs. main code):
    • 48 *.rs files (11,940 LOC)
    • 3 *.toml files (182 LOC)
  • " *.rs" is biggest, containing 98.5% of LOC.
  • " *.toml" is smallest, containing 1.5% of LOC.


*.rs11940 LOC (98%) 48 files
*.toml182 LOC (1%) 3 files
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]ests/.*".
    • files with paths like ".*_test[.].*".
  • 1377 files match defined criteria (34,000 LOC, 280.5% vs. main code):
    • 683 *.c files (19,739 LOC)
    • 254 *.pyx files (5,219 LOC)
    • 150 *.cpp files (4,769 LOC)
    • 181 *.rs files (3,469 LOC)
    • 107 *.toml files (765 LOC)
    • 1 *.cmake files (24 LOC)
    • 1 *.h files (15 LOC)
  • " *.c" is biggest, containing 58.06% of LOC.
  • " *.h" is smallest, containing 0.04% of LOC.


*.c19739 LOC (58%) 683 files
*.pyx5219 LOC (15%) 254 files
*.cpp4769 LOC (14%) 150 files
*.rs3469 LOC (10%) 181 files
*.toml765 LOC (2%) 107 files
*.cmake24 LOC (<1%) 1 file
*.h15 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 8 files match defined criteria (995 LOC, 8.2% vs. main code):
    • 5 *.md files (967 LOC)
    • 3 *.txt files (28 LOC)
  • " *.md" is biggest, containing 97.19% of LOC.
  • " *.txt" is smallest, containing 2.81% of LOC.


*.md967 LOC (97%) 5 files
*.txt28 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:45