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
in
mod
gitattributes
mak
mk
ini
tpl
lua
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.

main6802 LOC (31%) 115 files
test18 LOC (<1%) 2 files
generated1660 LOC (7%) 1 file
build and deployment426 LOC (2%) 11 files
other12362 LOC (58%) 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
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 115 files match defined criteria (6,802 LOC, 100.0% vs. main code):
    • 79 *.yaml files (5,716 LOC)
    • 8 *.jsx files (314 LOC)
    • 7 *.java files (251 LOC)
    • 5 *.js files (109 LOC)
    • 3 *.in files (98 LOC)
    • 2 *.py files (68 LOC)
    • 2 *.xml files (67 LOC)
    • 2 *.sql files (42 LOC)
    • 1 *.tpl files (33 LOC)
    • 1 *.go files (30 LOC)
    • 2 *.css files (21 LOC)
    • 1 *.dockerignore files (21 LOC)
    • 1 *.lua files (18 LOC)
    • 1 *.html files (14 LOC)
  • " *.yaml" is biggest, containing 84.03% of LOC.
  • " *.html" is smallest, containing 0.21% of LOC.


*.yaml5716 LOC (84%) 79 files
*.jsx314 LOC (4%) 8 files
*.java251 LOC (3%) 7 files
*.js109 LOC (1%) 5 files
*.in98 LOC (1%) 3 files
*.py68 LOC (<1%) 2 files
*.xml67 LOC (<1%) 2 files
*.sql42 LOC (<1%) 2 files
*.tpl33 LOC (<1%) 1 file
*.go30 LOC (<1%) 1 file
*.css21 LOC (<1%) 2 files
*.dockerignore21 LOC (<1%) 1 file
*.lua18 LOC (<1%) 1 file
*.html14 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.3% vs. main code). All matches are in *.java files.


*.java18 LOC (100%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (1,660 LOC, 24.4% vs. main code). All matches are in *.json files.


*.json1660 LOC (100%) 1 file
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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]mak".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (426 LOC, 6.3% vs. main code):
    • 3 *.sh files (140 LOC)
    • 2 *.bat files (136 LOC)
    • 4 *.gradle files (66 LOC)
    • 1 *.mk files (44 LOC)
    • 1 *.mak files (40 LOC)
  • " *.sh" is biggest, containing 32.86% of LOC.
  • " *.mak" is smallest, containing 9.39% of LOC.


*.sh140 LOC (32%) 3 files
*.bat136 LOC (31%) 2 files
*.gradle66 LOC (15%) 4 files
*.mk44 LOC (10%) 1 file
*.mak40 LOC (9%) 1 file
Other Code
txt
properties
ini
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
  • 17 files match defined criteria (12,362 LOC, 181.7% vs. main code):
    • 9 *.json files (12,228 LOC)
    • 3 *.txt files (51 LOC)
    • 2 *.properties files (36 LOC)
    • 1 *.ini files (24 LOC)
    • 1 *.md files (21 LOC)
    • 1 *.mod files (2 LOC)
  • " *.json" is biggest, containing 98.92% of LOC.
  • " *.mod" is smallest, containing 0.02% of LOC.


*.json12228 LOC (98%) 9 files
*.txt51 LOC (<1%) 3 files
*.properties36 LOC (<1%) 2 files
*.ini24 LOC (<1%) 1 file
*.md21 LOC (<1%) 1 file
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:32