guardian / media-atom-maker
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
eslintignore
editorconfig
babelrc
txt
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.

main18983 LOC (90%) 387 files
test1286 LOC (6%) 28 files
generated0 LOC (0%) 0 files
build and deployment123 LOC (<1%) 10 files
other644 LOC (3%) 18 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 ".*".
  • 387 files match defined criteria (18,983 LOC, 100.0% vs. main code):
    • 132 *.scala files (5,944 LOC)
    • 73 *.jsx files (5,818 LOC)
    • 92 *.js files (2,955 LOC)
    • 34 *.scss files (1,865 LOC)
    • 41 *.ts files (1,236 LOC)
    • 4 *.tsx files (497 LOC)
    • 3 *.yaml files (329 LOC)
    • 3 *.sbt files (223 LOC)
    • 3 *.html files (79 LOC)
    • 2 *.xml files (37 LOC)
  • " *.scala" is biggest, containing 31.31% of LOC.
  • " *.xml" is smallest, containing 0.19% of LOC.


*.scala5944 LOC (31%) 132 files
*.jsx5818 LOC (30%) 73 files
*.js2955 LOC (15%) 92 files
*.scss1865 LOC (9%) 34 files
*.ts1236 LOC (6%) 41 files
*.tsx497 LOC (2%) 4 files
*.yaml329 LOC (1%) 3 files
*.sbt223 LOC (1%) 3 files
*.html79 LOC (<1%) 3 files
*.xml37 LOC (<1%) 2 files
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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]spec[.]ts".
  • 28 files match defined criteria (1,286 LOC, 6.8% vs. main code):
    • 22 *.scala files (1,134 LOC)
    • 3 *.ts files (129 LOC)
    • 2 *.sh files (13 LOC)
    • 1 *.xml files (10 LOC)
  • " *.scala" is biggest, containing 88.18% of LOC.
  • " *.xml" is smallest, containing 0.78% of LOC.


*.scala1134 LOC (88%) 22 files
*.ts129 LOC (10%) 3 files
*.sh13 LOC (1%) 2 files
*.xml10 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 10 files match defined criteria (123 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh123 LOC (100%) 10 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/vendor/.*".
  • 18 files match defined criteria (644 LOC, 3.4% vs. main code):
    • 9 *.json files (415 LOC)
    • 6 *.md files (207 LOC)
    • 2 *.svg files (21 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 64.44% of LOC.
  • " *.properties" is smallest, containing 0.16% of LOC.


*.json415 LOC (64%) 9 files
*.md207 LOC (32%) 6 files
*.svg21 LOC (3%) 2 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:46