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

main11498 LOC (81%) 27 files
test1379 LOC (9%) 30 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1147 LOC (8%) 9 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 ".*".
  • 27 files match defined criteria (11,498 LOC, 100.0% vs. main code):
    • 22 *.rs files (11,260 LOC)
    • 4 *.html files (163 LOC)
    • 1 *.toml files (75 LOC)
  • " *.rs" is biggest, containing 97.93% of LOC.
  • " *.toml" is smallest, containing 0.65% of LOC.


*.rs11260 LOC (97%) 22 files
*.html163 LOC (1%) 4 files
*.toml75 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]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 30 files match defined criteria (1,379 LOC, 12.0% vs. main code):
    • 6 *.rs files (645 LOC)
    • 5 *.xml files (472 LOC)
    • 6 *.c files (133 LOC)
    • 7 *.cpp files (88 LOC)
    • 2 *.h files (26 LOC)
    • 2 *.toml files (10 LOC)
    • 2 *.java files (5 LOC)
  • " *.rs" is biggest, containing 46.77% of LOC.
  • " *.java" is smallest, containing 0.36% of LOC.


*.rs645 LOC (46%) 6 files
*.xml472 LOC (34%) 5 files
*.c133 LOC (9%) 6 files
*.cpp88 LOC (6%) 7 files
*.h26 LOC (1%) 2 files
*.toml10 LOC (<1%) 2 files
*.java5 LOC (<1%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
  • 9 files match defined criteria (1,147 LOC, 10.0% vs. main code):
    • 2 *.json files (576 LOC)
    • 2 *.md files (372 LOC)
    • 5 *.svg files (199 LOC)
  • " *.json" is biggest, containing 50.22% of LOC.
  • " *.svg" is smallest, containing 17.35% of LOC.


*.json576 LOC (50%) 2 files
*.md372 LOC (32%) 2 files
*.svg199 LOC (17%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:45