JetBrains / space-dotnet-sdk
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
cshtml
txt
dotsettings
props
gitattributes
targets
editorconfig
cmd
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.

main9095 LOC (4%) 215 files
test868 LOC (<1%) 17 files
generated192022 LOC (94%) 3,807 files
build and deployment183 LOC (<1%) 11 files
other863 LOC (<1%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
props
cmd
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 215 files match defined criteria (9,095 LOC, 100.0% vs. main code):
    • 200 *.cs files (8,667 LOC)
    • 8 *.cshtml files (253 LOC)
    • 2 *.props files (56 LOC)
    • 1 *.ps1 files (56 LOC)
    • 1 *.css files (54 LOC)
    • 1 *.cmd files (6 LOC)
    • 1 *.targets files (2 LOC)
    • 1 *.js files (1 LOC)
  • " *.cs" is biggest, containing 95.29% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.cs8667 LOC (95%) 200 files
*.cshtml253 LOC (2%) 8 files
*.props56 LOC (<1%) 2 files
*.ps156 LOC (<1%) 1 file
*.css54 LOC (<1%) 1 file
*.cmd6 LOC (<1%) 1 file
*.targets2 LOC (<1%) 1 file
*.js1 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 ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 17 files match defined criteria (868 LOC, 9.5% vs. main code):
    • 16 *.cs files (845 LOC)
    • 1 *.csproj files (23 LOC)
  • " *.cs" is biggest, containing 97.35% of LOC.
  • " *.csproj" is smallest, containing 2.65% of LOC.


*.cs845 LOC (97%) 16 files
*.csproj23 LOC (2%) 1 file
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 ".*[.]generated[.][a-zA-Z]+".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 3807 files match defined criteria (192,022 LOC, 2111.3% vs. main code). All matches are in *.cs files.


*.cs192022 LOC (100%) 3,807 files
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 ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (183 LOC, 2.0% vs. main code):
    • 9 *.csproj files (142 LOC)
    • 2 *.sh files (41 LOC)
  • " *.csproj" is biggest, containing 77.6% of LOC.
  • " *.sh" is smallest, containing 22.4% of LOC.


*.csproj142 LOC (77%) 9 files
*.sh41 LOC (22%) 2 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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
  • 15 files match defined criteria (863 LOC, 9.5% vs. main code):
    • 3 *.md files (543 LOC)
    • 4 *.txt files (207 LOC)
    • 8 *.json files (113 LOC)
  • " *.md" is biggest, containing 62.92% of LOC.
  • " *.json" is smallest, containing 13.09% of LOC.


*.md543 LOC (62%) 3 files
*.txt207 LOC (23%) 4 files
*.json113 LOC (13%) 8 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.cshtml files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.props files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.targets files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis


2026-01-18 17:17