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.

main23554 LOC (80%) 258 files
test4941 LOC (16%) 91 files
generated0 LOC (0%) 0 files
build and deployment415 LOC (1%) 14 files
other338 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 ".*".
  • 258 files match defined criteria (23,554 LOC, 100.0% vs. main code):
    • 194 *.go files (17,937 LOC)
    • 27 *.c files (3,251 LOC)
    • 35 *.h files (2,251 LOC)
    • 2 *.yaml files (115 LOC)
  • " *.go" is biggest, containing 76.15% of LOC.
  • " *.yaml" is smallest, containing 0.49% of LOC.


*.go17937 LOC (76%) 194 files
*.c3251 LOC (13%) 27 files
*.h2251 LOC (9%) 35 files
*.yaml115 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 91 files match defined criteria (4,941 LOC, 21.0% vs. main code):
    • 56 *.yaml files (3,280 LOC)
    • 15 *.go files (1,300 LOC)
    • 8 *.sh files (100 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)
    • 1 *.mk files (27 LOC)
    • 2 *.rs files (19 LOC)
    • 1 *.java files (15 LOC)
  • " *.yaml" is biggest, containing 66.38% of LOC.
  • " *.java" is smallest, containing 0.3% of LOC.


*.yaml3280 LOC (66%) 56 files
*.go1300 LOC (26%) 15 files
*.sh100 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
*.mk27 LOC (<1%) 1 file
*.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 ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 14 files match defined criteria (415 LOC, 1.8% vs. main code):
    • 8 *.mk files (270 LOC)
    • 6 *.sh files (145 LOC)
  • " *.mk" is biggest, containing 65.06% of LOC.
  • " *.sh" is smallest, containing 34.94% of LOC.


*.mk270 LOC (65%) 8 files
*.sh145 LOC (34%) 6 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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 7 files match defined criteria (338 LOC, 1.4% vs. main code):
    • 2 *.md files (161 LOC)
    • 3 *.mod files (124 LOC)
    • 2 *.txt files (53 LOC)
  • " *.md" is biggest, containing 47.63% of LOC.
  • " *.txt" is smallest, containing 15.68% of LOC.


*.md161 LOC (47%) 2 files
*.mod124 LOC (36%) 3 files
*.txt53 LOC (15%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:37