apache / skywalking-showcase
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
properties
mod
in
gitattributes
mak
mk
ini
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.

main4086 LOC (31%) 85 files
test18 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment364 LOC (2%) 10 files
other8563 LOC (65%) 17 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 85 files match defined criteria (4,086 LOC, 100.0% vs. main code):
    • 57 *.yaml files (3,320 LOC)
    • 7 *.java files (251 LOC)
    • 5 *.js files (119 LOC)
    • 3 *.go files (113 LOC)
    • 3 *.in files (88 LOC)
    • 2 *.py files (54 LOC)
    • 2 *.sql files (42 LOC)
    • 1 *.tpl files (33 LOC)
    • 1 *.dockerignore files (21 LOC)
    • 2 *.css files (19 LOC)
    • 1 *.xml files (13 LOC)
    • 1 *.html files (13 LOC)
  • " *.yaml" is biggest, containing 81.25% of LOC.
  • " *.html" is smallest, containing 0.32% of LOC.


*.yaml3320 LOC (81%) 57 files
*.java251 LOC (6%) 7 files
*.js119 LOC (2%) 5 files
*.go113 LOC (2%) 3 files
*.in88 LOC (2%) 3 files
*.py54 LOC (1%) 2 files
*.sql42 LOC (1%) 2 files
*.tpl33 LOC (<1%) 1 file
*.dockerignore21 LOC (<1%) 1 file
*.css19 LOC (<1%) 2 files
*.xml13 LOC (<1%) 1 file
*.html13 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/.*".
  • 2 files match defined criteria (18 LOC, 0.4% vs. main code). All matches are in *.java files.


*.java18 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
mak
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (364 LOC, 8.9% vs. main code):
    • 2 *.bat files (136 LOC)
    • 2 *.sh files (83 LOC)
    • 4 *.gradle files (65 LOC)
    • 1 *.mk files (44 LOC)
    • 1 *.mak files (36 LOC)
  • " *.bat" is biggest, containing 37.36% of LOC.
  • " *.mak" is smallest, containing 9.89% of LOC.


*.bat136 LOC (37%) 2 files
*.sh83 LOC (22%) 2 files
*.gradle65 LOC (17%) 4 files
*.mk44 LOC (12%) 1 file
*.mak36 LOC (9%) 1 file
Other Code
mod
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]properties".
  • 17 files match defined criteria (8,563 LOC, 209.6% vs. main code):
    • 7 *.json files (8,348 LOC)
    • 3 *.mod files (83 LOC)
    • 3 *.txt files (51 LOC)
    • 2 *.properties files (36 LOC)
    • 1 *.ini files (24 LOC)
    • 1 *.md files (21 LOC)
  • " *.json" is biggest, containing 97.49% of LOC.
  • " *.md" is smallest, containing 0.25% of LOC.


*.json8348 LOC (97%) 7 files
*.mod83 LOC (<1%) 3 files
*.txt51 LOC (<1%) 3 files
*.properties36 LOC (<1%) 2 files
*.ini24 LOC (<1%) 1 file
*.md21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:19