guardian / newsletters-nx
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
babelrc
txt
editorconfig
eslintignore
npmrc
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.

main16310 LOC (64%) 286 files
test4109 LOC (16%) 28 files
generated0 LOC (0%) 0 files
build and deployment56 LOC (<1%) 4 files
other4686 LOC (18%) 52 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 ".*".
  • 286 files match defined criteria (16,310 LOC, 100.0% vs. main code):
    • 181 *.ts files (9,569 LOC)
    • 100 *.tsx files (6,087 LOC)
    • 2 *.yaml files (443 LOC)
    • 2 *.js files (182 LOC)
    • 1 *.html files (29 LOC)
  • " *.ts" is biggest, containing 58.67% of LOC.
  • " *.html" is smallest, containing 0.18% of LOC.


*.ts9569 LOC (58%) 181 files
*.tsx6087 LOC (37%) 100 files
*.yaml443 LOC (2%) 2 files
*.js182 LOC (1%) 2 files
*.html29 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
  • 28 files match defined criteria (4,109 LOC, 25.2% vs. main code):
    • 1 *.snap files (2,527 LOC)
    • 25 *.ts files (1,576 LOC)
    • 2 *.js files (6 LOC)
  • " *.snap" is biggest, containing 61.5% of LOC.
  • " *.js" is smallest, containing 0.15% of LOC.


*.snap2527 LOC (61%) 1 file
*.ts1576 LOC (38%) 25 files
*.js6 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 4 files match defined criteria (56 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh56 LOC (100%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • 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 ".*/[.]prettierignore".
  • 52 files match defined criteria (4,686 LOC, 28.7% vs. main code):
    • 44 *.json files (4,547 LOC)
    • 7 *.md files (92 LOC)
    • 1 *.txt files (47 LOC)
  • " *.json" is biggest, containing 97.03% of LOC.
  • " *.txt" is smallest, containing 1% of LOC.


*.json4547 LOC (97%) 44 files
*.md92 LOC (1%) 7 files
*.txt47 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:56