guardian / cql
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
properties
txt
mjs
snap
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.

main7191 LOC (70%) 78 files
test2618 LOC (25%) 17 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other361 LOC (3%) 11 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 78 files match defined criteria (7,191 LOC, 100.0% vs. main code):
    • 53 *.ts files (5,029 LOC)
    • 12 *.scala files (1,055 LOC)
    • 1 *.html files (599 LOC)
    • 7 *.tsx files (415 LOC)
    • 2 *.sbt files (54 LOC)
    • 1 *.mjs files (25 LOC)
    • 1 *.xml files (12 LOC)
    • 1 *.toml files (2 LOC)
  • " *.ts" is biggest, containing 69.93% of LOC.
  • " *.toml" is smallest, containing 0.03% of LOC.


*.ts5029 LOC (69%) 53 files
*.scala1055 LOC (14%) 12 files
*.html599 LOC (8%) 1 file
*.tsx415 LOC (5%) 7 files
*.sbt54 LOC (<1%) 2 files
*.mjs25 LOC (<1%) 1 file
*.xml12 LOC (<1%) 1 file
*.toml2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
  • 17 files match defined criteria (2,618 LOC, 36.4% vs. main code):
    • 8 *.ts files (1,298 LOC)
    • 1 *.snap files (662 LOC)
    • 7 *.scala files (657 LOC)
    • 1 *.js files (1 LOC)
  • " *.ts" is biggest, containing 49.58% of LOC.
  • " *.js" is smallest, containing 0.04% of LOC.


*.ts1298 LOC (49%) 8 files
*.snap662 LOC (25%) 1 file
*.scala657 LOC (25%) 7 files
*.js1 LOC (<1%) 1 file
Other Code
properties
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]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
  • 11 files match defined criteria (361 LOC, 5.0% vs. main code):
    • 3 *.md files (182 LOC)
    • 6 *.json files (177 LOC)
    • 2 *.properties files (2 LOC)
  • " *.md" is biggest, containing 50.42% of LOC.
  • " *.properties" is smallest, containing 0.55% of LOC.


*.md182 LOC (50%) 3 files
*.json177 LOC (49%) 6 files
*.properties2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:59