guardian / tagmanager
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
tern-project
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.

main18053 LOC (82%) 314 files
test153 LOC (<1%) 6 files
generated0 LOC (0%) 0 files
build and deployment236 LOC (1%) 6 files
other3322 LOC (15%) 32 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 ".*".
  • 314 files match defined criteria (18,053 LOC, 100.0% vs. main code):
    • 140 *.js files (8,660 LOC)
    • 114 *.scala files (6,546 LOC)
    • 46 *.scss files (2,073 LOC)
    • 6 *.yaml files (594 LOC)
    • 2 *.sbt files (77 LOC)
    • 5 *.html files (77 LOC)
    • 1 *.xml files (26 LOC)
  • " *.js" is biggest, containing 47.97% of LOC.
  • " *.xml" is smallest, containing 0.14% of LOC.


*.js8660 LOC (47%) 140 files
*.scala6546 LOC (36%) 114 files
*.scss2073 LOC (11%) 46 files
*.yaml594 LOC (3%) 6 files
*.sbt77 LOC (<1%) 2 files
*.html77 LOC (<1%) 5 files
*.xml26 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/.*".
  • 6 files match defined criteria (153 LOC, 0.8% vs. main code). All matches are in *.scala files.


*.scala153 LOC (100%) 6 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 6 files match defined criteria (236 LOC, 1.3% vs. main code):
    • 3 *.js files (206 LOC)
    • 3 *.sh files (30 LOC)
  • " *.js" is biggest, containing 87.29% of LOC.
  • " *.sh" is smallest, containing 12.71% of LOC.


*.js206 LOC (87%) 3 files
*.sh30 LOC (12%) 3 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
  • 32 files match defined criteria (3,322 LOC, 18.4% vs. main code):
    • 29 *.svg files (3,218 LOC)
    • 1 *.json files (62 LOC)
    • 1 *.md files (41 LOC)
    • 1 *.properties files (1 LOC)
  • " *.svg" is biggest, containing 96.87% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.svg3218 LOC (96%) 29 files
*.json62 LOC (1%) 1 file
*.md41 LOC (1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:44