apache / skywalking-php
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
ini
m4
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.

main3587 LOC (45%) 29 files
test2738 LOC (34%) 18 files
generated0 LOC (0%) 0 files
build and deployment41 LOC (<1%) 1 file
other1592 LOC (20%) 63 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 ".*".
  • 29 files match defined criteria (3,587 LOC, 100.0% vs. main code):
    • 25 *.rs files (3,418 LOC)
    • 3 *.toml files (108 LOC)
    • 1 *.xml files (61 LOC)
  • " *.rs" is biggest, containing 95.29% of LOC.
  • " *.xml" is smallest, containing 1.7% of LOC.


*.rs3418 LOC (95%) 25 files
*.toml108 LOC (3%) 3 files
*.xml61 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]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 18 files match defined criteria (2,738 LOC, 76.3% vs. main code):
    • 1 *.yaml files (1,766 LOC)
    • 2 *.rs files (518 LOC)
    • 15 *.php files (454 LOC)
  • " *.yaml" is biggest, containing 64.5% of LOC.
  • " *.php" is smallest, containing 16.58% of LOC.


*.yaml1766 LOC (64%) 1 file
*.rs518 LOC (18%) 2 files
*.php454 LOC (16%) 15 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 1 file matches defined criteria (41 LOC, 1.1% vs. main code). All matches are in *.yml files.


*.yml41 LOC (100%) 1 file
Other Code
txt
ini
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 63 files match defined criteria (1,592 LOC, 44.4% vs. main code):
    • 59 *.txt files (1,319 LOC)
    • 1 *.ini files (198 LOC)
    • 1 *.md files (35 LOC)
    • 1 *.tpl files (22 LOC)
    • 1 *.json files (18 LOC)
  • " *.txt" is biggest, containing 82.85% of LOC.
  • " *.json" is smallest, containing 1.13% of LOC.


*.txt1319 LOC (82%) 59 files
*.ini198 LOC (12%) 1 file
*.md35 LOC (2%) 1 file
*.tpl22 LOC (1%) 1 file
*.json18 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:33