apache / skywalking-rover
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
mk
mod
tpl
proto
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.

main17064 LOC (75%) 190 files
test4945 LOC (21%) 167 files
generated0 LOC (0%) 0 files
build and deployment426 LOC (1%) 15 files
other266 LOC (1%) 7 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 ".*".
  • 190 files match defined criteria (17,064 LOC, 100.0% vs. main code):
    • 159 *.go files (14,038 LOC)
    • 10 *.c files (1,797 LOC)
    • 19 *.h files (1,123 LOC)
    • 2 *.yaml files (106 LOC)
  • " *.go" is biggest, containing 82.27% of LOC.
  • " *.yaml" is smallest, containing 0.62% of LOC.


*.go14038 LOC (82%) 159 files
*.c1797 LOC (10%) 10 files
*.h1123 LOC (6%) 19 files
*.yaml106 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
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[.].*".
  • 167 files match defined criteria (4,945 LOC, 29.0% vs. main code):
    • 95 *.yml files (1,903 LOC)
    • 39 *.yaml files (1,583 LOC)
    • 14 *.go files (1,083 LOC)
    • 8 *.sh files (142 LOC)
    • 3 *.cpp files (69 LOC)
    • 1 *.py files (38 LOC)
    • 1 *.js files (33 LOC)
    • 1 *.proto files (31 LOC)
    • 2 *.c files (29 LOC)
    • 2 *.rs files (19 LOC)
    • 1 *.java files (15 LOC)
  • " *.yml" is biggest, containing 38.48% of LOC.
  • " *.java" is smallest, containing 0.3% of LOC.


*.yml1903 LOC (38%) 95 files
*.yaml1583 LOC (32%) 39 files
*.go1083 LOC (21%) 14 files
*.sh142 LOC (2%) 8 files
*.cpp69 LOC (1%) 3 files
*.py38 LOC (<1%) 1 file
*.js33 LOC (<1%) 1 file
*.proto31 LOC (<1%) 1 file
*.c29 LOC (<1%) 2 files
*.rs19 LOC (<1%) 2 files
*.java15 LOC (<1%) 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
  • 15 files match defined criteria (426 LOC, 2.5% vs. main code):
    • 9 *.mk files (282 LOC)
    • 6 *.sh files (144 LOC)
  • " *.mk" is biggest, containing 66.2% of LOC.
  • " *.sh" is smallest, containing 33.8% of LOC.


*.mk282 LOC (66%) 9 files
*.sh144 LOC (33%) 6 files
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (266 LOC, 1.6% vs. main code):
    • 3 *.mod files (117 LOC)
    • 2 *.md files (96 LOC)
    • 2 *.txt files (53 LOC)
  • " *.mod" is biggest, containing 43.98% of LOC.
  • " *.txt" is smallest, containing 19.92% of LOC.


*.mod117 LOC (43%) 3 files
*.md96 LOC (36%) 2 files
*.txt53 LOC (19%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:23