JetBrains / Sharpmake
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
vcxproj
filters
csproj
plist
make
props
txt
storyboard
properties
xsd
nasm
ui
editorconfig
metal
vsixmanifest
gitattributes
targets
sc
wsdl
dotsettings
resx
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.

main57079 LOC (64%) 260 files
test7570 LOC (8%) 25 files
generated102 LOC (<1%) 1 file
build and deployment214 LOC (<1%) 7 files
other22886 LOC (26%) 530 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vcxproj
filters
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 260 files match defined criteria (57,079 LOC, 100.0% vs. main code):
    • 171 *.cs files (50,747 LOC)
    • 18 *.vcxproj files (5,392 LOC)
    • 5 *.ps1 files (434 LOC)
    • 35 *.cpp files (213 LOC)
    • 14 *.filters files (172 LOC)
    • 14 *.h files (71 LOC)
    • 1 *.props files (44 LOC)
    • 2 *.c files (6 LOC)
  • " *.cs" is biggest, containing 88.91% of LOC.
  • " *.c" is smallest, containing 0.01% of LOC.


*.cs50747 LOC (88%) 171 files
*.vcxproj5392 LOC (9%) 18 files
*.ps1434 LOC (<1%) 5 files
*.cpp213 LOC (<1%) 35 files
*.filters172 LOC (<1%) 14 files
*.h71 LOC (<1%) 14 files
*.props44 LOC (<1%) 1 file
*.c6 LOC (<1%) 2 files
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 ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 25 files match defined criteria (7,570 LOC, 13.3% vs. main code):
    • 22 *.cs files (7,201 LOC)
    • 2 *.py files (350 LOC)
    • 1 *.csproj files (19 LOC)
  • " *.cs" is biggest, containing 95.13% of LOC.
  • " *.csproj" is smallest, containing 0.25% of LOC.


*.cs7201 LOC (95%) 22 files
*.py350 LOC (4%) 2 files
*.csproj19 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 "[/][/][ ]*".
  • 1 file matches defined criteria (102 LOC, 0.2% vs. main code). All matches are in *.cs files.


*.cs102 LOC (100%) 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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]make".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (214 LOC, 0.4% vs. main code):
    • 2 *.bat files (143 LOC)
    • 5 *.csproj files (71 LOC)
  • " *.bat" is biggest, containing 66.82% of LOC.
  • " *.csproj" is smallest, containing 33.18% of LOC.


*.bat143 LOC (66%) 2 files
*.csproj71 LOC (33%) 5 files
Other Code
vcxproj
csproj
make
storyboard
plist
filters
targets
xsd
wsdl
props
metal
txt
vsixmanifest
nasm
properties
ui
sc
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 ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 530 files match defined criteria (22,886 LOC, 40.1% vs. main code):
    • 159 *.cs files (8,407 LOC)
    • 22 *.vcxproj files (4,693 LOC)
    • 26 *.csproj files (1,936 LOC)
    • 107 *.cpp files (1,287 LOC)
    • 27 *.mm files (1,090 LOC)
    • 7 *.make files (872 LOC)
    • 8 *.json files (866 LOC)
    • 5 *.storyboard files (823 LOC)
    • 82 *.h files (575 LOC)
    • 4 *.m files (299 LOC)
    • 8 *.plist files (282 LOC)
    • 6 *.xml files (277 LOC)
    • 22 *.filters files (256 LOC)
    • 6 *.md files (240 LOC)
    • 5 *.bat files (210 LOC)
    • 4 *.gradle files (142 LOC)
    • 1 *.css files (106 LOC)
    • 1 *.targets files (93 LOC)
    • 3 *.xsd files (84 LOC)
    • 1 *.wsdl files (58 LOC)
    • 1 *.html files (53 LOC)
    • 5 *.props files (45 LOC)
    • 1 *.metal files (41 LOC)
    • 4 *.txt files (32 LOC)
    • 1 *.vsixmanifest files (24 LOC)
    • 3 *.nasm files (22 LOC)
    • 2 *.asm files (19 LOC)
    • 3 *.properties files (19 LOC)
    • 2 *.rs files (13 LOC)
    • 1 *.toml files (8 LOC)
    • 1 *.c files (7 LOC)
    • 1 *.ui files (6 LOC)
    • 1 *.sc files (1 LOC)
  • " *.cs" is biggest, containing 36.73% of LOC.
  • " *.sc" is smallest, containing 0% of LOC.


*.cs8407 LOC (36%) 159 files
*.vcxproj4693 LOC (20%) 22 files
*.csproj1936 LOC (8%) 26 files
*.cpp1287 LOC (5%) 107 files
*.mm1090 LOC (4%) 27 files
*.make872 LOC (3%) 7 files
*.json866 LOC (3%) 8 files
*.storyboard823 LOC (3%) 5 files
*.h575 LOC (2%) 82 files
*.m299 LOC (1%) 4 files
*.plist282 LOC (1%) 8 files
*.xml277 LOC (1%) 6 files
*.filters256 LOC (1%) 22 files
*.md240 LOC (1%) 6 files
*.bat210 LOC (<1%) 5 files
*.gradle142 LOC (<1%) 4 files
*.css106 LOC (<1%) 1 file
*.targets93 LOC (<1%) 1 file
*.xsd84 LOC (<1%) 3 files
*.wsdl58 LOC (<1%) 1 file
*.html53 LOC (<1%) 1 file
*.props45 LOC (<1%) 5 files
*.metal41 LOC (<1%) 1 file
*.txt32 LOC (<1%) 4 files
*.vsixmanifest24 LOC (<1%) 1 file
*.nasm22 LOC (<1%) 3 files
*.asm19 LOC (<1%) 2 files
*.properties19 LOC (<1%) 3 files
*.rs13 LOC (<1%) 2 files
*.toml8 LOC (<1%) 1 file
*.c7 LOC (<1%) 1 file
*.ui6 LOC (<1%) 1 file
*.sc1 LOC (<1%) 1 file
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)
  • *.vcxproj 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
  • *.cpp 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
  • *.filters 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
  • *.h 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
  • *.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
  • *.c files are analyzed with CStyleAnalyzer:
    • 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:21