apache / pulsar-dotpulsar
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
csproj
props
gitattributes
txt
editorconfig
dotsettings
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.

main12327 LOC (83%) 266 files
test1742 LOC (11%) 25 files
generated0 LOC (0%) 0 files
build and deployment40 LOC (<1%) 1 file
other729 LOC (4%) 17 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 266 files match defined criteria (12,327 LOC, 100.0% vs. main code):
    • 265 *.cs files (12,321 LOC)
    • 1 *.props files (6 LOC)
  • " *.cs" is biggest, containing 99.95% of LOC.
  • " *.props" is smallest, containing 0.05% of LOC.


*.cs12321 LOC (99%) 265 files
*.props6 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 25 files match defined criteria (1,742 LOC, 14.1% vs. main code):
    • 23 *.cs files (1,700 LOC)
    • 1 *.csproj files (36 LOC)
    • 1 *.props files (6 LOC)
  • " *.cs" is biggest, containing 97.59% of LOC.
  • " *.props" is smallest, containing 0.34% of LOC.


*.cs1700 LOC (97%) 23 files
*.csproj36 LOC (2%) 1 file
*.props6 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (40 LOC, 0.3% vs. main code). All matches are in *.csproj files.


*.csproj40 LOC (100%) 1 file
Other Code
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 17 files match defined criteria (729 LOC, 5.9% vs. main code):
    • 3 *.md files (427 LOC)
    • 6 *.cs files (230 LOC)
    • 4 *.csproj files (41 LOC)
    • 4 *.json files (31 LOC)
  • " *.md" is biggest, containing 58.57% of LOC.
  • " *.json" is smallest, containing 4.25% of LOC.


*.md427 LOC (58%) 3 files
*.cs230 LOC (31%) 6 files
*.csproj41 LOC (5%) 4 files
*.json31 LOC (4%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:43