guardian / mobile-purchases
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
eslintignore
properties
snap
prettierignore
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.

main8941 LOC (73%) 83 files
test2888 LOC (23%) 28 files
generated0 LOC (0%) 0 files
build and deployment78 LOC (<1%) 3 files
other320 LOC (2%) 11 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 ".*".
  • 83 files match defined criteria (8,941 LOC, 100.0% vs. main code):
    • 66 *.ts files (5,372 LOC)
    • 5 *.yaml files (2,812 LOC)
    • 6 *.scala files (277 LOC)
    • 1 *.py files (249 LOC)
    • 2 *.xml files (132 LOC)
    • 2 *.sbt files (92 LOC)
    • 1 *.cjs files (7 LOC)
  • " *.ts" is biggest, containing 60.08% of LOC.
  • " *.cjs" is smallest, containing 0.08% of LOC.


*.ts5372 LOC (60%) 66 files
*.yaml2812 LOC (31%) 5 files
*.scala277 LOC (3%) 6 files
*.py249 LOC (2%) 1 file
*.xml132 LOC (1%) 2 files
*.sbt92 LOC (1%) 2 files
*.cjs7 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]snap".
  • 28 files match defined criteria (2,888 LOC, 32.3% vs. main code):
    • 21 *.ts files (2,680 LOC)
    • 3 *.scala files (172 LOC)
    • 1 *.xml files (15 LOC)
    • 2 *.js files (12 LOC)
    • 1 *.snap files (9 LOC)
  • " *.ts" is biggest, containing 92.8% of LOC.
  • " *.snap" is smallest, containing 0.31% of LOC.


*.ts2680 LOC (92%) 21 files
*.scala172 LOC (5%) 3 files
*.xml15 LOC (<1%) 1 file
*.js12 LOC (<1%) 2 files
*.snap9 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (78 LOC, 0.9% vs. main code):
    • 1 *.js files (56 LOC)
    • 2 *.sh files (22 LOC)
  • " *.js" is biggest, containing 71.79% of LOC.
  • " *.sh" is smallest, containing 28.21% of LOC.


*.js56 LOC (71%) 1 file
*.sh22 LOC (28%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • 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 ".*[.]properties".
    • files with paths like ".*/[.]prettierignore".
  • 11 files match defined criteria (320 LOC, 3.6% vs. main code):
    • 7 *.json files (220 LOC)
    • 3 *.md files (99 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 68.75% of LOC.
  • " *.properties" is smallest, containing 0.31% of LOC.


*.json220 LOC (68%) 7 files
*.md99 LOC (30%) 3 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:49