apache / skywalking-cli
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
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.

main11212 LOC (88%) 261 files
test683 LOC (5%) 12 files
generated0 LOC (0%) 0 files
build and deployment197 LOC (1%) 6 files
other571 LOC (4%) 8 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 ".*".
  • 261 files match defined criteria (11,212 LOC, 100.0% vs. main code):
    • 185 *.go files (8,938 LOC)
    • 72 *.graphql files (2,015 LOC)
    • 1 *.html files (196 LOC)
    • 3 *.yaml files (63 LOC)
  • " *.go" is biggest, containing 79.72% of LOC.
  • " *.yaml" is smallest, containing 0.56% of LOC.


*.go8938 LOC (79%) 185 files
*.graphql2015 LOC (17%) 72 files
*.html196 LOC (1%) 1 file
*.yaml63 LOC (<1%) 3 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 ".*/test[.].*".
  • 12 files match defined criteria (683 LOC, 6.1% vs. main code):
    • 9 *.go files (572 LOC)
    • 1 *.yaml files (76 LOC)
    • 2 *.py files (35 LOC)
  • " *.go" is biggest, containing 83.75% of LOC.
  • " *.py" is smallest, containing 5.12% of LOC.


*.go572 LOC (83%) 9 files
*.yaml76 LOC (11%) 1 file
*.py35 LOC (5%) 2 files
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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (197 LOC, 1.8% vs. main code):
    • 5 *.sh files (135 LOC)
    • 1 *.bat files (62 LOC)
  • " *.sh" is biggest, containing 68.53% of LOC.
  • " *.bat" is smallest, containing 31.47% of LOC.


*.sh135 LOC (68%) 5 files
*.bat62 LOC (31%) 1 file
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
  • 8 files match defined criteria (571 LOC, 5.1% vs. main code):
    • 3 *.md files (419 LOC)
    • 1 *.mod files (88 LOC)
    • 2 *.yaml files (31 LOC)
    • 1 *.go files (17 LOC)
    • 1 *.txt files (16 LOC)
  • " *.md" is biggest, containing 73.38% of LOC.
  • " *.txt" is smallest, containing 2.8% of LOC.


*.md419 LOC (73%) 3 files
*.mod88 LOC (15%) 1 file
*.yaml31 LOC (5%) 2 files
*.go17 LOC (2%) 1 file
*.txt16 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:01