guardian / story-packages
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
editorconfig
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.

main10398 LOC (28%) 175 files
test6943 LOC (19%) 89 files
generated9307 LOC (25%) 1 file
build and deployment36 LOC (<1%) 2 files
other9480 LOC (26%) 5 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 ".*".
  • 175 files match defined criteria (10,398 LOC, 100.0% vs. main code):
    • 98 *.js files (5,266 LOC)
    • 46 *.scala files (2,294 LOC)
    • 3 *.css files (2,052 LOC)
    • 24 *.html files (671 LOC)
    • 2 *.sbt files (70 LOC)
    • 1 *.xml files (24 LOC)
    • 1 *.yaml files (21 LOC)
  • " *.js" is biggest, containing 50.64% of LOC.
  • " *.yaml" is smallest, containing 0.2% of LOC.


*.js5266 LOC (50%) 98 files
*.scala2294 LOC (22%) 46 files
*.css2052 LOC (19%) 3 files
*.html671 LOC (6%) 24 files
*.sbt70 LOC (<1%) 2 files
*.xml24 LOC (<1%) 1 file
*.yaml21 LOC (<1%) 1 file
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 ".*[.]spec[.]js".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/karma[.]conf[.]js".
  • 89 files match defined criteria (6,943 LOC, 66.8% vs. main code):
    • 85 *.js files (6,849 LOC)
    • 4 *.scala files (94 LOC)
  • " *.js" is biggest, containing 98.65% of LOC.
  • " *.scala" is smallest, containing 1.35% of LOC.


*.js6849 LOC (98%) 85 files
*.scala94 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (9,307 LOC, 89.5% vs. main code). All matches are in *.json files.


*.json9307 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (36 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh36 LOC (100%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • 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".
  • 5 files match defined criteria (9,480 LOC, 91.2% vs. main code):
    • 3 *.json files (9,376 LOC)
    • 1 *.md files (103 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 98.9% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.json9376 LOC (98%) 3 files
*.md103 LOC (1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:45