guardian / newswires
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
snap
sc
txt
eslintignore
properties
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.

main16603 LOC (67%) 114 files
test6830 LOC (27%) 22 files
generated607 LOC (2%) 1 file
build and deployment85 LOC (<1%) 2 files
other541 LOC (2%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
sc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 114 files match defined criteria (16,603 LOC, 100.0% vs. main code):
    • 52 *.ts files (10,425 LOC)
    • 25 *.tsx files (3,054 LOC)
    • 17 *.scala files (2,778 LOC)
    • 1 *.sc files (138 LOC)
    • 2 *.sbt files (91 LOC)
    • 13 *.sql files (54 LOC)
    • 1 *.xml files (37 LOC)
    • 2 *.html files (19 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.ts" is biggest, containing 62.79% of LOC.
  • " *.yaml" is smallest, containing 0.04% of LOC.


*.ts10425 LOC (62%) 52 files
*.tsx3054 LOC (18%) 25 files
*.scala2778 LOC (16%) 17 files
*.sc138 LOC (<1%) 1 file
*.sbt91 LOC (<1%) 2 files
*.sql54 LOC (<1%) 13 files
*.xml37 LOC (<1%) 1 file
*.html19 LOC (<1%) 2 files
*.yaml7 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 ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]snap".
  • 22 files match defined criteria (6,830 LOC, 41.1% vs. main code):
    • 3 *.snap files (5,026 LOC)
    • 12 *.ts files (1,446 LOC)
    • 2 *.scala files (236 LOC)
    • 1 *.tsx files (99 LOC)
    • 4 *.js files (23 LOC)
  • " *.snap" is biggest, containing 73.59% of LOC.
  • " *.js" is smallest, containing 0.34% of LOC.


*.snap5026 LOC (73%) 3 files
*.ts1446 LOC (21%) 12 files
*.scala236 LOC (3%) 2 files
*.tsx99 LOC (1%) 1 file
*.js23 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 ".*/generated/.*".
  • 1 file matches defined criteria (607 LOC, 3.7% vs. main code). All matches are in *.ts files.


*.ts607 LOC (100%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (85 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh85 LOC (100%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 24 files match defined criteria (541 LOC, 3.3% vs. main code):
    • 15 *.json files (350 LOC)
    • 7 *.md files (185 LOC)
    • 1 *.svg files (5 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 64.7% of LOC.
  • " *.properties" is smallest, containing 0.18% of LOC.


*.json350 LOC (64%) 15 files
*.md185 LOC (34%) 7 files
*.svg5 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 21:00