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.

main9964 LOC (84%) 230 files
test1060 LOC (8%) 34 files
generated0 LOC (0%) 0 files
build and deployment197 LOC (1%) 6 files
other576 LOC (4%) 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 ".*".
  • 230 files match defined criteria (9,964 LOC, 100.0% vs. main code):
    • 165 *.go files (8,014 LOC)
    • 60 *.graphql files (1,656 LOC)
    • 1 *.html files (196 LOC)
    • 3 *.yaml files (63 LOC)
    • 1 *.yml files (35 LOC)
  • " *.go" is biggest, containing 80.43% of LOC.
  • " *.yml" is smallest, containing 0.35% of LOC.


*.go8014 LOC (80%) 165 files
*.graphql1656 LOC (16%) 60 files
*.html196 LOC (1%) 1 file
*.yaml63 LOC (<1%) 3 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 ".*_test[.].*".
  • 34 files match defined criteria (1,060 LOC, 10.6% vs. main code):
    • 9 *.go files (572 LOC)
    • 22 *.yml files (375 LOC)
    • 1 *.yaml files (78 LOC)
    • 2 *.py files (35 LOC)
  • " *.go" is biggest, containing 53.96% of LOC.
  • " *.py" is smallest, containing 3.3% of LOC.


*.go572 LOC (53%) 9 files
*.yml375 LOC (35%) 22 files
*.yaml78 LOC (7%) 1 file
*.py35 LOC (3%) 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (197 LOC, 2.0% 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 ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • 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 ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 9 files match defined criteria (576 LOC, 5.8% vs. main code):
    • 3 *.md files (388 LOC)
    • 1 *.mod files (89 LOC)
    • 1 *.yml files (35 LOC)
    • 2 *.yaml files (31 LOC)
    • 1 *.go files (17 LOC)
    • 1 *.txt files (16 LOC)
  • " *.md" is biggest, containing 67.36% of LOC.
  • " *.txt" is smallest, containing 2.78% of LOC.


*.md388 LOC (67%) 3 files
*.mod89 LOC (15%) 1 file
*.yml35 LOC (6%) 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.


2023-08-10 22:26