elastic / apm-k8s-attacher
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
mod
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 (14%) 9 files
test716 LOC (16%) 24 files
generated0 LOC (0%) 0 files
build and deployment132 LOC (3%) 3 files
other2852 LOC (65%) 9 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 ".*".
  • 9 files match defined criteria (650 LOC, 100.0% vs. main code):
    • 2 *.go files (364 LOC)
    • 6 *.yaml files (255 LOC)
    • 1 *.asciidoc files (31 LOC)
  • " *.go" is biggest, containing 56% of LOC.
  • " *.asciidoc" is smallest, containing 4.77% of LOC.


*.go364 LOC (56%) 2 files
*.yaml255 LOC (39%) 6 files
*.asciidoc31 LOC (4%) 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 24 files match defined criteria (716 LOC, 110.2% vs. main code):
    • 4 *.tf files (233 LOC)
    • 2 *.go files (160 LOC)
    • 7 *.yaml files (129 LOC)
    • 6 *.sh files (108 LOC)
    • 2 *.java files (68 LOC)
    • 1 *.csproj files (7 LOC)
    • 1 *.js files (6 LOC)
    • 1 *.cs files (5 LOC)
  • " *.tf" is biggest, containing 32.54% of LOC.
  • " *.cs" is smallest, containing 0.7% of LOC.


*.tf233 LOC (32%) 4 files
*.go160 LOC (22%) 2 files
*.yaml129 LOC (18%) 7 files
*.sh108 LOC (15%) 6 files
*.java68 LOC (9%) 2 files
*.csproj7 LOC (<1%) 1 file
*.js6 LOC (<1%) 1 file
*.cs5 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
  • 3 files match defined criteria (132 LOC, 20.3% vs. main code). All matches are in *.sh files.


*.sh132 LOC (100%) 3 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 9 files match defined criteria (2,852 LOC, 438.8% vs. main code):
    • 2 *.txt files (2,612 LOC)
    • 4 *.md files (198 LOC)
    • 1 *.mod files (29 LOC)
    • 2 *.json files (13 LOC)
  • " *.txt" is biggest, containing 91.58% of LOC.
  • " *.json" is smallest, containing 0.46% of LOC.


*.txt2612 LOC (91%) 2 files
*.md198 LOC (6%) 4 files
*.mod29 LOC (1%) 1 file
*.json13 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:59