apache / skywalking-website
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
webmanifest
nuspec
gitmodules
htaccess
gitattributes
stylelintignore
editorconfig
eslintignore
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.

main7263 LOC (20%) 178 files
test0 LOC (0%) 0 files
generated649 LOC (1%) 1 file
build and deployment102 LOC (<1%) 4 files
other27190 LOC (77%) 467 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 178 files match defined criteria (7,263 LOC, 100.0% vs. main code):
    • 42 *.scss files (2,980 LOC)
    • 99 *.html files (2,547 LOC)
    • 14 *.js files (760 LOC)
    • 12 *.toml files (654 LOC)
    • 1 *.ps1 files (129 LOC)
    • 4 *.xml files (76 LOC)
    • 1 *.rdf files (41 LOC)
    • 3 *.css files (38 LOC)
    • 2 *.webmanifest files (38 LOC)
  • " *.scss" is biggest, containing 41.03% of LOC.
  • " *.webmanifest" is smallest, containing 0.52% of LOC.


*.scss2980 LOC (41%) 42 files
*.html2547 LOC (35%) 99 files
*.js760 LOC (10%) 14 files
*.toml654 LOC (9%) 12 files
*.ps1129 LOC (1%) 1 file
*.xml76 LOC (1%) 4 files
*.rdf41 LOC (<1%) 1 file
*.css38 LOC (<1%) 3 files
*.webmanifest38 LOC (<1%) 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (649 LOC, 8.9% vs. main code). All matches are in *.json files.


*.json649 LOC (100%) 1 file
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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[-]lock[.]json".
  • 4 files match defined criteria (102 LOC, 1.4% vs. main code). All matches are in *.sh files.


*.sh102 LOC (100%) 4 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]htaccess".
  • 467 files match defined criteria (27,190 LOC, 374.4% vs. main code):
    • 432 *.md files (24,876 LOC)
    • 31 *.svg files (1,599 LOC)
    • 4 *.json files (715 LOC)
  • " *.md" is biggest, containing 91.49% of LOC.
  • " *.json" is smallest, containing 2.63% of LOC.


*.md24876 LOC (91%) 432 files
*.svg1599 LOC (5%) 31 files
*.json715 LOC (2%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:36