JetBrains / SharpGenTools
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
txt
targets
editorconfig
proj
xaml
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.

main62576 LOC (92%) 443 files
test4442 LOC (6%) 37 files
generated0 LOC (0%) 0 files
build and deployment156 LOC (<1%) 7 files
other827 LOC (1%) 23 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
targets
props
xaml
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 443 files match defined criteria (62,576 LOC, 100.0% vs. main code):
    • 118 *.h files (41,490 LOC)
    • 291 *.cs files (19,471 LOC)
    • 8 *.cpp files (647 LOC)
    • 5 *.targets files (272 LOC)
    • 7 *.props files (197 LOC)
    • 4 *.xml files (167 LOC)
    • 2 *.c files (164 LOC)
    • 5 *.ps1 files (120 LOC)
    • 1 *.xaml files (39 LOC)
    • 1 *.proj files (6 LOC)
    • 1 *.psd1 files (3 LOC)
  • " *.h" is biggest, containing 66.3% of LOC.
  • " *.psd1" is smallest, containing 0% of LOC.


*.h41490 LOC (66%) 118 files
*.cs19471 LOC (31%) 291 files
*.cpp647 LOC (1%) 8 files
*.targets272 LOC (<1%) 5 files
*.props197 LOC (<1%) 7 files
*.xml167 LOC (<1%) 4 files
*.c164 LOC (<1%) 2 files
*.ps1120 LOC (<1%) 5 files
*.xaml39 LOC (<1%) 1 file
*.proj6 LOC (<1%) 1 file
*.psd13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*[-]test[-].*".
  • 37 files match defined criteria (4,442 LOC, 7.1% vs. main code):
    • 34 *.cs files (4,307 LOC)
    • 2 *.ps1 files (113 LOC)
    • 1 *.csproj files (22 LOC)
  • " *.cs" is biggest, containing 96.96% of LOC.
  • " *.csproj" is smallest, containing 0.5% of LOC.


*.cs4307 LOC (96%) 34 files
*.ps1113 LOC (2%) 2 files
*.csproj22 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (156 LOC, 0.2% vs. main code). All matches are in *.csproj files.


*.csproj156 LOC (100%) 7 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
  • 23 files match defined criteria (827 LOC, 1.3% vs. main code):
    • 13 *.cs files (708 LOC)
    • 3 *.md files (60 LOC)
    • 5 *.txt files (40 LOC)
    • 2 *.json files (19 LOC)
  • " *.cs" is biggest, containing 85.61% of LOC.
  • " *.json" is smallest, containing 2.3% of LOC.


*.cs708 LOC (85%) 13 files
*.md60 LOC (7%) 3 files
*.txt40 LOC (4%) 5 files
*.json19 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:07