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.

main11849 LOC (80%) 168 files
test1796 LOC (12%) 47 files
generated0 LOC (0%) 0 files
build and deployment349 LOC (2%) 7 files
other732 LOC (4%) 16 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 ".*".
  • 168 files match defined criteria (11,849 LOC, 100.0% vs. main code):
    • 121 *.yaml files (6,499 LOC)
    • 46 *.go files (5,315 LOC)
    • 1 *.yml files (35 LOC)
  • " *.yaml" is biggest, containing 54.85% of LOC.
  • " *.yml" is smallest, containing 0.3% of LOC.


*.yaml6499 LOC (54%) 121 files
*.go5315 LOC (44%) 46 files
*.yml35 LOC (<1%) 1 file
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 ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
  • 47 files match defined criteria (1,796 LOC, 15.2% vs. main code):
    • 46 *.yaml files (1,670 LOC)
    • 1 *.go files (126 LOC)
  • " *.yaml" is biggest, containing 92.98% of LOC.
  • " *.go" is smallest, containing 7.02% of LOC.


*.yaml1670 LOC (92%) 46 files
*.go126 LOC (7%) 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.9% 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 16 files match defined criteria (732 LOC, 6.2% vs. main code):
    • 9 *.yaml files (296 LOC)
    • 3 *.md files (215 LOC)
    • 2 *.mod files (189 LOC)
    • 2 *.txt files (32 LOC)
  • " *.yaml" is biggest, containing 40.44% of LOC.
  • " *.txt" is smallest, containing 4.37% of LOC.


*.yaml296 LOC (40%) 9 files
*.md215 LOC (29%) 3 files
*.mod189 LOC (25%) 2 files
*.txt32 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 23:36