GoogleCloudPlatform / opentelemetry-operations-js
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
npmignore
mod
txt
editorconfig
eslintignore
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.

main2069 LOC (5%) 35 files
test5129 LOC (14%) 21 files
generated11511 LOC (33%) 2 files
build and deployment0 LOC (0%) 0 files
other15799 LOC (45%) 56 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 ".*".
  • 35 files match defined criteria (2,069 LOC, 100.0% vs. main code):
    • 23 *.ts files (1,748 LOC)
    • 9 *.yaml files (180 LOC)
    • 3 *.js files (141 LOC)
  • " *.ts" is biggest, containing 84.49% of LOC.
  • " *.js" is smallest, containing 6.81% of LOC.


*.ts1748 LOC (84%) 23 files
*.yaml180 LOC (8%) 9 files
*.js141 LOC (6%) 3 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 ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 21 files match defined criteria (5,129 LOC, 247.9% vs. main code):
    • 18 *.ts files (3,155 LOC)
    • 2 *.js files (1,965 LOC)
    • 1 *.sh files (9 LOC)
  • " *.ts" is biggest, containing 61.51% of LOC.
  • " *.sh" is smallest, containing 0.18% of LOC.


*.ts3155 LOC (61%) 18 files
*.js1965 LOC (38%) 2 files
*.sh9 LOC (<1%) 1 file
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".
  • 2 files match defined criteria (11,511 LOC, 556.4% vs. main code). All matches are in *.json files.


*.json11511 LOC (100%) 2 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
  • 56 files match defined criteria (15,799 LOC, 763.6% vs. main code):
    • 26 *.json files (14,571 LOC)
    • 12 *.md files (463 LOC)
    • 9 *.ts files (350 LOC)
    • 1 *.mod files (194 LOC)
    • 5 *.yaml files (157 LOC)
    • 2 *.js files (56 LOC)
    • 1 *.go files (8 LOC)
  • " *.json" is biggest, containing 92.23% of LOC.
  • " *.go" is smallest, containing 0.05% of LOC.


*.json14571 LOC (92%) 26 files
*.md463 LOC (2%) 12 files
*.ts350 LOC (2%) 9 files
*.mod194 LOC (1%) 1 file
*.yaml157 LOC (<1%) 5 files
*.js56 LOC (<1%) 2 files
*.go8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:19