JetBrains / wcf
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
cmd
resx
xsd
txt
props
targets
wsdl
patch
proj
editorconfig
xproj
vbs
gitattributes
ashx
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.

main843912 LOC (86%) 2,878 files
test39961 LOC (4%) 507 files
generated84319 LOC (8%) 113 files
build and deployment3747 LOC (<1%) 40 files
other5452 LOC (<1%) 220 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
ashx
targets
props
proj
vbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2878 files match defined criteria (843,912 LOC, 100.0% vs. main code):
    • 2,554 *.cs files (518,621 LOC)
    • 247 *.xlf files (317,617 LOC)
    • 35 *.ps1 files (3,643 LOC)
    • 2 *.cxx files (1,581 LOC)
    • 20 *.cmd files (871 LOC)
    • 1 *.ashx files (361 LOC)
    • 1 *.psm1 files (344 LOC)
    • 1 *.cmake files (337 LOC)
    • 5 *.targets files (221 LOC)
    • 3 *.xml files (127 LOC)
    • 5 *.props files (90 LOC)
    • 2 *.proj files (83 LOC)
    • 1 *.psd1 files (11 LOC)
    • 1 *.vbs files (5 LOC)
  • " *.cs" is biggest, containing 61.45% of LOC.
  • " *.vbs" is smallest, containing 0% of LOC.


*.cs518621 LOC (61%) 2,554 files
*.xlf317617 LOC (37%) 247 files
*.ps13643 LOC (<1%) 35 files
*.cxx1581 LOC (<1%) 2 files
*.cmd871 LOC (<1%) 20 files
*.ashx361 LOC (<1%) 1 file
*.psm1344 LOC (<1%) 1 file
*.cmake337 LOC (<1%) 1 file
*.targets221 LOC (<1%) 5 files
*.xml127 LOC (<1%) 3 files
*.props90 LOC (<1%) 5 files
*.proj83 LOC (<1%) 2 files
*.psd111 LOC (<1%) 1 file
*.vbs5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
wsdl
xsd
props
xproj
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 507 files match defined criteria (39,961 LOC, 4.7% vs. main code):
    • 343 *.cs files (34,938 LOC)
    • 144 *.csproj files (2,180 LOC)
    • 4 *.wsdl files (2,009 LOC)
    • 11 *.xsd files (700 LOC)
    • 1 *.props files (102 LOC)
    • 1 *.xproj files (18 LOC)
    • 2 *.xml files (10 LOC)
    • 1 *.targets files (4 LOC)
  • " *.cs" is biggest, containing 87.43% of LOC.
  • " *.targets" is smallest, containing 0.01% of LOC.


*.cs34938 LOC (87%) 343 files
*.csproj2180 LOC (5%) 144 files
*.wsdl2009 LOC (5%) 4 files
*.xsd700 LOC (1%) 11 files
*.props102 LOC (<1%) 1 file
*.xproj18 LOC (<1%) 1 file
*.xml10 LOC (<1%) 2 files
*.targets4 LOC (<1%) 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 113 files match defined criteria (84,319 LOC, 10.0% vs. main code). All matches are in *.cs files.


*.cs84319 LOC (100%) 113 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".
  • 40 files match defined criteria (3,747 LOC, 0.4% vs. main code):
    • 25 *.sh files (3,154 LOC)
    • 15 *.csproj files (593 LOC)
  • " *.sh" is biggest, containing 84.17% of LOC.
  • " *.csproj" is smallest, containing 15.83% of LOC.


*.sh3154 LOC (84%) 25 files
*.csproj593 LOC (15%) 15 files
Other Code
txt
patch
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
  • 220 files match defined criteria (5,452 LOC, 0.6% vs. main code):
    • 166 *.json files (2,863 LOC)
    • 45 *.md files (2,266 LOC)
    • 5 *.txt files (253 LOC)
    • 4 *.patch files (70 LOC)
  • " *.json" is biggest, containing 52.51% of LOC.
  • " *.patch" is smallest, containing 1.28% of LOC.


*.json2863 LOC (52%) 166 files
*.md2266 LOC (41%) 45 files
*.txt253 LOC (4%) 5 files
*.patch70 LOC (1%) 4 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)
  • *.xlf 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
  • *.cxx files are analyzed with CppAnalyzer:
    • 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
  • *.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
  • *.ashx 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
  • *.psm1 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
  • *.cmake 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
  • *.xml 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
  • *.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
  • *.proj 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
  • *.psd1 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
  • *.vbs files are analyzed with VisualBasicAnalyzer:
    • 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:23