elastic / opentelemetry
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
jinja2
txt
edn
csproj
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.

main650 LOC (7%) 16 files
test226 LOC (2%) 14 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other7381 LOC (89%) 108 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jinja2
edn
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 16 files match defined criteria (650 LOC, 100.0% vs. main code):
    • 6 *.html files (201 LOC)
    • 3 *.py files (167 LOC)
    • 3 *.jinja2 files (162 LOC)
    • 3 *.scss files (99 LOC)
    • 1 *.edn files (21 LOC)
  • " *.html" is biggest, containing 30.92% of LOC.
  • " *.edn" is smallest, containing 3.23% of LOC.


*.html201 LOC (30%) 6 files
*.py167 LOC (25%) 3 files
*.jinja2162 LOC (24%) 3 files
*.scss99 LOC (15%) 3 files
*.edn21 LOC (3%) 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]est/.*".
  • 14 files match defined criteria (226 LOC, 34.8% vs. main code):
    • 5 *.yaml files (103 LOC)
    • 4 *.sh files (88 LOC)
    • 1 *.java files (12 LOC)
    • 1 *.csproj files (7 LOC)
    • 1 *.js files (6 LOC)
    • 1 *.cs files (5 LOC)
    • 1 *.py files (5 LOC)
  • " *.yaml" is biggest, containing 45.58% of LOC.
  • " *.py" is smallest, containing 2.21% of LOC.


*.yaml103 LOC (45%) 5 files
*.sh88 LOC (38%) 4 files
*.java12 LOC (5%) 1 file
*.csproj7 LOC (3%) 1 file
*.js6 LOC (2%) 1 file
*.cs5 LOC (2%) 1 file
*.py5 LOC (2%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 108 files match defined criteria (7,381 LOC, 1135.5% vs. main code):
    • 105 *.md files (7,370 LOC)
    • 2 *.txt files (9 LOC)
    • 1 *.svg files (2 LOC)
  • " *.md" is biggest, containing 99.85% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.md7370 LOC (99%) 105 files
*.txt9 LOC (<1%) 2 files
*.svg2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:07