mozilla / psa-checker
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
mod
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.

main407 LOC (17%) 7 files
test1426 LOC (62%) 18 files
generated0 LOC (0%) 0 files
build and deployment68 LOC (2%) 1 file
other368 LOC (16%) 3 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 ".*".
  • 7 files match defined criteria (407 LOC, 100.0% vs. main code):
    • 6 *.go files (310 LOC)
    • 1 *.ps1 files (97 LOC)
  • " *.go" is biggest, containing 76.17% of LOC.
  • " *.ps1" is smallest, containing 23.83% of LOC.


*.go310 LOC (76%) 6 files
*.ps197 LOC (23%) 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 ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
  • 18 files match defined criteria (1,426 LOC, 350.4% vs. main code):
    • 15 *.yaml files (1,308 LOC)
    • 1 *.go files (106 LOC)
    • 2 *.sh files (12 LOC)
  • " *.yaml" is biggest, containing 91.73% of LOC.
  • " *.sh" is smallest, containing 0.84% of LOC.


*.yaml1308 LOC (91%) 15 files
*.go106 LOC (7%) 1 file
*.sh12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (68 LOC, 16.7% vs. main code). All matches are in *.sh files.


*.sh68 LOC (100%) 1 file
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
  • 3 files match defined criteria (368 LOC, 90.4% vs. main code):
    • 1 *.txt files (169 LOC)
    • 1 *.md files (149 LOC)
    • 1 *.mod files (50 LOC)
  • " *.txt" is biggest, containing 45.92% of LOC.
  • " *.mod" is smallest, containing 13.59% of LOC.


*.txt169 LOC (45%) 1 file
*.md149 LOC (40%) 1 file
*.mod50 LOC (13%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 20:00