elastic / opentelemetry-demo
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
properties
mod
csproj
plist
proto
mjs
prettierignore
pro
storyboard
props
gitattributes
ini
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.

main24052 LOC (27%) 240 files
test1493 LOC (1%) 45 files
generated30918 LOC (34%) 12 files
build and deployment661 LOC (<1%) 14 files
other31769 LOC (35%) 67 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
mjs
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 240 files match defined criteria (24,052 LOC, 100.0% vs. main code):
    • 88 *.ts files (9,235 LOC)
    • 11 *.go files (7,590 LOC)
    • 56 *.tsx files (2,349 LOC)
    • 6 *.py files (1,103 LOC)
    • 8 *.yaml files (948 LOC)
    • 8 *.cs files (479 LOC)
    • 4 *.java files (401 LOC)
    • 9 *.rs files (309 LOC)
    • 2 *.proto files (278 LOC)
    • 8 *.js files (230 LOC)
    • 1 *.cpp files (221 LOC)
    • 6 *.php files (187 LOC)
    • 12 *.xml files (159 LOC)
    • 5 *.h files (149 LOC)
    • 3 *.kt files (142 LOC)
    • 2 *.kts files (75 LOC)
    • 1 *.mm files (42 LOC)
    • 2 *.toml files (41 LOC)
    • 1 *.erb files (37 LOC)
    • 1 *.rb files (35 LOC)
    • 2 *.css files (18 LOC)
    • 2 *.mjs files (12 LOC)
    • 1 *.m files (7 LOC)
    • 1 *.props files (5 LOC)
  • " *.ts" is biggest, containing 38.4% of LOC.
  • " *.props" is smallest, containing 0.02% of LOC.


*.ts9235 LOC (38%) 88 files
*.go7590 LOC (31%) 11 files
*.tsx2349 LOC (9%) 56 files
*.py1103 LOC (4%) 6 files
*.yaml948 LOC (3%) 8 files
*.cs479 LOC (1%) 8 files
*.java401 LOC (1%) 4 files
*.rs309 LOC (1%) 9 files
*.proto278 LOC (1%) 2 files
*.js230 LOC (<1%) 8 files
*.cpp221 LOC (<1%) 1 file
*.php187 LOC (<1%) 6 files
*.xml159 LOC (<1%) 12 files
*.h149 LOC (<1%) 5 files
*.kt142 LOC (<1%) 3 files
*.kts75 LOC (<1%) 2 files
*.mm42 LOC (<1%) 1 file
*.toml41 LOC (<1%) 2 files
*.erb37 LOC (<1%) 1 file
*.rb35 LOC (<1%) 1 file
*.css18 LOC (<1%) 2 files
*.mjs12 LOC (<1%) 2 files
*.m7 LOC (<1%) 1 file
*.props5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 45 files match defined criteria (1,493 LOC, 6.2% vs. main code):
    • 38 *.yaml files (978 LOC)
    • 1 *.go files (218 LOC)
    • 1 *.cs files (106 LOC)
    • 3 *.ts files (94 LOC)
    • 1 *.bash files (79 LOC)
    • 1 *.csproj files (18 LOC)
  • " *.yaml" is biggest, containing 65.51% of LOC.
  • " *.csproj" is smallest, containing 1.21% of LOC.


*.yaml978 LOC (65%) 38 files
*.go218 LOC (14%) 1 file
*.cs106 LOC (7%) 1 file
*.ts94 LOC (6%) 3 files
*.bash79 LOC (5%) 1 file
*.csproj18 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".
    • files with paths like ".*/generated/.*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
    • files with paths like ".*[.](cpp|hpp|h|cc)" AND any line of content like ".*[/][/] Generated by the gRPC.*".
  • 12 files match defined criteria (30,918 LOC, 128.5% vs. main code):
    • 4 *.json files (25,261 LOC)
    • 5 *.h files (4,279 LOC)
    • 3 *.cc files (1,378 LOC)
  • " *.json" is biggest, containing 81.7% of LOC.
  • " *.cc" is smallest, containing 4.46% of LOC.


*.json25261 LOC (81%) 4 files
*.h4279 LOC (13%) 5 files
*.cc1378 LOC (4%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
  • 14 files match defined criteria (661 LOC, 2.7% vs. main code):
    • 5 *.gradle files (246 LOC)
    • 3 *.bat files (215 LOC)
    • 2 *.sh files (101 LOC)
    • 2 *.csproj files (61 LOC)
    • 2 *.xml files (38 LOC)
  • " *.gradle" is biggest, containing 37.22% of LOC.
  • " *.xml" is smallest, containing 5.75% of LOC.


*.gradle246 LOC (37%) 5 files
*.bat215 LOC (32%) 3 files
*.sh101 LOC (15%) 2 files
*.csproj61 LOC (9%) 2 files
*.xml38 LOC (5%) 2 files
Other Code
ini
mod
txt
plist
storyboard
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]ini".
  • 67 files match defined criteria (31,769 LOC, 132.1% vs. main code):
    • 27 *.json files (28,790 LOC)
    • 22 *.md files (1,504 LOC)
    • 1 *.ini files (912 LOC)
    • 3 *.mod files (171 LOC)
    • 4 *.txt files (123 LOC)
    • 3 *.plist files (97 LOC)
    • 4 *.svg files (76 LOC)
    • 1 *.storyboard files (51 LOC)
    • 2 *.properties files (45 LOC)
  • " *.json" is biggest, containing 90.62% of LOC.
  • " *.properties" is smallest, containing 0.14% of LOC.


*.json28790 LOC (90%) 27 files
*.md1504 LOC (4%) 22 files
*.ini912 LOC (2%) 1 file
*.mod171 LOC (<1%) 3 files
*.txt123 LOC (<1%) 4 files
*.plist97 LOC (<1%) 3 files
*.svg76 LOC (<1%) 4 files
*.storyboard51 LOC (<1%) 1 file
*.properties45 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:00