JetBrains / msbuild
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
targets
xaml
nuspec
proj
props
resx
txt
cmd
xsl
xsd
gitattributes
tst
editorconfig
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.

main383332 LOC (62%) 1,226 files
test218437 LOC (35%) 488 files
generated0 LOC (0%) 0 files
build and deployment4578 LOC (<1%) 46 files
other2855 LOC (<1%) 88 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
targets
xsl
xaml
props
cmd
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1226 files match defined criteria (383,332 LOC, 100.0% vs. main code):
    • 1,019 *.cs files (234,420 LOC)
    • 112 *.xlf files (134,073 LOC)
    • 3 *.xsd files (5,706 LOC)
    • 28 *.targets files (4,483 LOC)
    • 6 *.xsl files (1,443 LOC)
    • 24 *.xaml files (1,410 LOC)
    • 13 *.props files (525 LOC)
    • 6 *.cmd files (435 LOC)
    • 11 *.proj files (416 LOC)
    • 1 *.ps1 files (334 LOC)
    • 1 *.groovy files (67 LOC)
    • 1 *.h files (11 LOC)
    • 1 *.xml files (9 LOC)
  • " *.cs" is biggest, containing 61.15% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.cs234420 LOC (61%) 1,019 files
*.xlf134073 LOC (34%) 112 files
*.xsd5706 LOC (1%) 3 files
*.targets4483 LOC (1%) 28 files
*.xsl1443 LOC (<1%) 6 files
*.xaml1410 LOC (<1%) 24 files
*.props525 LOC (<1%) 13 files
*.cmd435 LOC (<1%) 6 files
*.proj416 LOC (<1%) 11 files
*.ps1334 LOC (<1%) 1 file
*.groovy67 LOC (<1%) 1 file
*.h11 LOC (<1%) 1 file
*.xml9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
tst
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/UnitTests?/.*".
    • files with paths like ".*/TestData/.*".
  • 488 files match defined criteria (218,437 LOC, 57.0% vs. main code):
    • 469 *.cs files (217,182 LOC)
    • 9 *.csproj files (1,245 LOC)
    • 7 *.h files (7 LOC)
    • 2 *.cpp files (2 LOC)
    • 1 *.tst files (1 LOC)
  • " *.cs" is biggest, containing 99.43% of LOC.
  • " *.tst" is smallest, containing 0% of LOC.


*.cs217182 LOC (99%) 469 files
*.csproj1245 LOC (<1%) 9 files
*.h7 LOC (<1%) 7 files
*.cpp2 LOC (<1%) 2 files
*.tst1 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 46 files match defined criteria (4,578 LOC, 1.2% vs. main code):
    • 18 *.csproj files (3,116 LOC)
    • 22 *.nuspec files (1,018 LOC)
    • 2 *.sh files (391 LOC)
    • 4 *.bat files (53 LOC)
  • " *.csproj" is biggest, containing 68.06% of LOC.
  • " *.bat" is smallest, containing 1.16% of LOC.


*.csproj3116 LOC (68%) 18 files
*.nuspec1018 LOC (22%) 22 files
*.sh391 LOC (8%) 2 files
*.bat53 LOC (1%) 4 files
Other Code
csproj
txt
proj
targets
cmd
props
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 ".*[.]editorconfig".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
  • 88 files match defined criteria (2,855 LOC, 0.7% vs. main code):
    • 29 *.cs files (1,382 LOC)
    • 33 *.json files (753 LOC)
    • 8 *.csproj files (283 LOC)
    • 7 *.txt files (207 LOC)
    • 4 *.md files (142 LOC)
    • 4 *.proj files (43 LOC)
    • 1 *.targets files (22 LOC)
    • 1 *.cmd files (17 LOC)
    • 1 *.props files (6 LOC)
  • " *.cs" is biggest, containing 48.41% of LOC.
  • " *.props" is smallest, containing 0.21% of LOC.


*.cs1382 LOC (48%) 29 files
*.json753 LOC (26%) 33 files
*.csproj283 LOC (9%) 8 files
*.txt207 LOC (7%) 7 files
*.md142 LOC (4%) 4 files
*.proj43 LOC (1%) 4 files
*.targets22 LOC (<1%) 1 file
*.cmd17 LOC (<1%) 1 file
*.props6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 16:51