apache / skywalking-swck
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
tpl
mk
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.

main12814 LOC (80%) 181 files
test1935 LOC (12%) 51 files
generated0 LOC (0%) 0 files
build and deployment349 LOC (2%) 7 files
other779 LOC (4%) 17 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 ".*".
  • 181 files match defined criteria (12,814 LOC, 100.0% vs. main code):
    • 130 *.yaml files (6,880 LOC)
    • 51 *.go files (5,934 LOC)
  • " *.yaml" is biggest, containing 53.69% of LOC.
  • " *.go" is smallest, containing 46.31% of LOC.


*.yaml6880 LOC (53%) 130 files
*.go5934 LOC (46%) 51 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 ".*/e2e/.*".
  • 51 files match defined criteria (1,935 LOC, 15.1% vs. main code):
    • 50 *.yaml files (1,809 LOC)
    • 1 *.go files (126 LOC)
  • " *.yaml" is biggest, containing 93.49% of LOC.
  • " *.go" is smallest, containing 6.51% of LOC.


*.yaml1809 LOC (93%) 50 files
*.go126 LOC (6%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (349 LOC, 2.7% vs. main code):
    • 5 *.sh files (213 LOC)
    • 2 *.mk files (136 LOC)
  • " *.sh" is biggest, containing 61.03% of LOC.
  • " *.mk" is smallest, containing 38.97% of LOC.


*.sh213 LOC (61%) 5 files
*.mk136 LOC (38%) 2 files
Other Code
mod
txt
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 17 files match defined criteria (779 LOC, 6.1% vs. main code):
    • 10 *.yaml files (336 LOC)
    • 3 *.md files (223 LOC)
    • 2 *.mod files (188 LOC)
    • 2 *.txt files (32 LOC)
  • " *.yaml" is biggest, containing 43.13% of LOC.
  • " *.txt" is smallest, containing 4.11% of LOC.


*.yaml336 LOC (43%) 10 files
*.md223 LOC (28%) 3 files
*.mod188 LOC (24%) 2 files
*.txt32 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:06