JetBrains / SkiaSharp
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
plist
xaml
cake
props
storyboard
txt
razor
resx
cshtml
nuspec
mk
vcxproj
editorconfig
shproj
csx
gitmodules
glade
webmanifest
gitattributes
filters
pub
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.

main37253 LOC (28%) 407 files
test16041 LOC (12%) 140 files
generated6290 LOC (4%) 23 files
build and deployment1493 LOC (1%) 72 files
other68711 LOC (52%) 1,205 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cake
targets
vcxproj
props
filters
razor
pub
csx
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 407 files match defined criteria (37,253 LOC, 100.0% vs. main code):
    • 263 *.cs files (30,636 LOC)
    • 25 *.cake files (3,005 LOC)
    • 36 *.ps1 files (1,212 LOC)
    • 40 *.targets files (782 LOC)
    • 2 *.vcxproj files (443 LOC)
    • 5 *.js files (419 LOC)
    • 11 *.props files (263 LOC)
    • 3 *.ts files (254 LOC)
    • 5 *.xml files (92 LOC)
    • 7 *.h files (63 LOC)
    • 3 *.cpp files (31 LOC)
    • 1 *.filters files (31 LOC)
    • 1 *.html files (16 LOC)
    • 3 *.razor files (3 LOC)
    • 1 *.pub files (2 LOC)
    • 1 *.csx files (1 LOC)
  • " *.cs" is biggest, containing 82.24% of LOC.
  • " *.csx" is smallest, containing 0% of LOC.


*.cs30636 LOC (82%) 263 files
*.cake3005 LOC (8%) 25 files
*.ps11212 LOC (3%) 36 files
*.targets782 LOC (2%) 40 files
*.vcxproj443 LOC (1%) 2 files
*.js419 LOC (1%) 5 files
*.props263 LOC (<1%) 11 files
*.ts254 LOC (<1%) 3 files
*.xml92 LOC (<1%) 5 files
*.h63 LOC (<1%) 7 files
*.cpp31 LOC (<1%) 3 files
*.filters31 LOC (<1%) 1 file
*.html16 LOC (<1%) 1 file
*.razor3 LOC (<1%) 3 files
*.pub2 LOC (<1%) 1 file
*.csx1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
xaml
targets
props
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/.*".
  • 140 files match defined criteria (16,041 LOC, 43.1% vs. main code):
    • 127 *.cs files (15,727 LOC)
    • 5 *.csproj files (206 LOC)
    • 1 *.js files (45 LOC)
    • 2 *.xml files (19 LOC)
    • 1 *.css files (18 LOC)
    • 1 *.html files (13 LOC)
    • 1 *.xaml files (7 LOC)
    • 1 *.targets files (3 LOC)
    • 1 *.props files (3 LOC)
  • " *.cs" is biggest, containing 98.04% of LOC.
  • " *.props" is smallest, containing 0.02% of LOC.


*.cs15727 LOC (98%) 127 files
*.csproj206 LOC (1%) 5 files
*.js45 LOC (<1%) 1 file
*.xml19 LOC (<1%) 2 files
*.css18 LOC (<1%) 1 file
*.html13 LOC (<1%) 1 file
*.xaml7 LOC (<1%) 1 file
*.targets3 LOC (<1%) 1 file
*.props3 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 "[/][/][ ]*".
    • files with paths like ".*[.]designer[.](cs|vb)".
    • files with paths like ".*[.]generated[.][a-zA-Z]+".
  • 23 files match defined criteria (6,290 LOC, 16.9% vs. main code). All matches are in *.cs files.


*.cs6290 LOC (100%) 23 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]bat".
  • 72 files match defined criteria (1,493 LOC, 4.0% vs. main code):
    • 48 *.csproj files (1,235 LOC)
    • 15 *.sh files (132 LOC)
    • 5 *.nuspec files (78 LOC)
    • 1 *.bat files (27 LOC)
    • 3 *.mk files (21 LOC)
  • " *.csproj" is biggest, containing 82.72% of LOC.
  • " *.mk" is smallest, containing 1.41% of LOC.


*.csproj1235 LOC (82%) 48 files
*.sh132 LOC (8%) 15 files
*.nuspec78 LOC (5%) 5 files
*.bat27 LOC (1%) 1 file
*.mk21 LOC (1%) 3 files
Other Code
csproj
txt
plist
storyboard
xaml
razor
cshtml
targets
shproj
glade
webmanifest
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 ".*[.]editorconfig".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]xib".
    • files with paths like ".*/[.]gitignore".
  • 1205 files match defined criteria (68,711 LOC, 184.4% vs. main code):
    • 93 *.json files (28,846 LOC)
    • 708 *.md files (22,950 LOC)
    • 193 *.cs files (7,091 LOC)
    • 42 *.csproj files (2,977 LOC)
    • 10 *.txt files (2,511 LOC)
    • 41 *.xml files (860 LOC)
    • 38 *.plist files (849 LOC)
    • 11 *.storyboard files (616 LOC)
    • 30 *.xaml files (608 LOC)
    • 4 *.svg files (575 LOC)
    • 7 *.razor files (250 LOC)
    • 5 *.css files (206 LOC)
    • 7 *.cshtml files (127 LOC)
    • 2 *.ps1 files (61 LOC)
    • 1 *.xib files (43 LOC)
    • 2 *.targets files (37 LOC)
    • 5 *.js files (28 LOC)
    • 1 *.html files (28 LOC)
    • 2 *.shproj files (26 LOC)
    • 1 *.glade files (10 LOC)
    • 1 *.webmanifest files (10 LOC)
    • 1 *.props files (2 LOC)
  • " *.json" is biggest, containing 41.98% of LOC.
  • " *.props" is smallest, containing 0% of LOC.


*.json28846 LOC (41%) 93 files
*.md22950 LOC (33%) 708 files
*.cs7091 LOC (10%) 193 files
*.csproj2977 LOC (4%) 42 files
*.txt2511 LOC (3%) 10 files
*.xml860 LOC (1%) 41 files
*.plist849 LOC (1%) 38 files
*.storyboard616 LOC (<1%) 11 files
*.xaml608 LOC (<1%) 30 files
*.svg575 LOC (<1%) 4 files
*.razor250 LOC (<1%) 7 files
*.css206 LOC (<1%) 5 files
*.cshtml127 LOC (<1%) 7 files
*.ps161 LOC (<1%) 2 files
*.xib43 LOC (<1%) 1 file
*.targets37 LOC (<1%) 2 files
*.js28 LOC (<1%) 5 files
*.html28 LOC (<1%) 1 file
*.shproj26 LOC (<1%) 2 files
*.glade10 LOC (<1%) 1 file
*.webmanifest10 LOC (<1%) 1 file
*.props2 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)
  • *.cake 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)
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • 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
  • *.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
  • *.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
  • *.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
  • *.html 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
  • *.razor 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
  • *.pub 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
  • *.csx 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)


2026-01-18 17:23