JetBrains / skia
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
glsl
metal
frag
hlsl
gn
txt
gni
vert
patch
cfg
mod
properties
natvis
lex
pfa
storyboard
eslintignore
plist
clang-format
proto
clang-tidy
pb
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.

main757190 LOC (53%) 4,891 files
test290920 LOC (20%) 2,388 files
generated24206 LOC (1%) 14 files
build and deployment1812 LOC (<1%) 79 files
other346561 LOC (24%) 594 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gn
gni
natvis
cfg
lex
vert
proto
frag
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4891 files match defined criteria (757,190 LOC, 100.0% vs. main code):
    • 2,260 *.cpp files (512,156 LOC)
    • 1,866 *.h files (145,147 LOC)
    • 65 *.go files (18,927 LOC)
    • 297 *.py files (15,487 LOC)
    • 76 *.mm files (12,658 LOC)
    • 56 *.js files (9,518 LOC)
    • 28 *.gn files (6,293 LOC)
    • 37 *.bzl files (6,076 LOC)
    • 43 *.gni files (5,912 LOC)
    • 2 *.htm files (5,874 LOC)
    • 30 *.html files (4,783 LOC)
    • 49 *.java files (3,760 LOC)
    • 5 *.cc files (2,351 LOC)
    • 10 *.rs files (1,980 LOC)
    • 1 *.inc files (1,396 LOC)
    • 28 *.xml files (1,218 LOC)
    • 7 *.ts files (1,065 LOC)
    • 1 *.c files (786 LOC)
    • 1 *.json5 files (607 LOC)
    • 1 *.natvis files (243 LOC)
    • 1 *.sql files (233 LOC)
    • 2 *.toml files (164 LOC)
    • 1 *.css files (142 LOC)
    • 5 *.cfg files (116 LOC)
    • 1 *.lex files (102 LOC)
    • 13 *.vert files (91 LOC)
    • 1 *.proto files (50 LOC)
    • 1 *.ps1 files (37 LOC)
    • 1 *.m files (11 LOC)
    • 2 *.frag files (7 LOC)
  • " *.cpp" is biggest, containing 67.64% of LOC.
  • " *.frag" is smallest, containing 0% of LOC.


*.cpp512156 LOC (67%) 2,260 files
*.h145147 LOC (19%) 1,866 files
*.go18927 LOC (2%) 65 files
*.py15487 LOC (2%) 297 files
*.mm12658 LOC (1%) 76 files
*.js9518 LOC (1%) 56 files
*.gn6293 LOC (<1%) 28 files
*.bzl6076 LOC (<1%) 37 files
*.gni5912 LOC (<1%) 43 files
*.htm5874 LOC (<1%) 2 files
*.html4783 LOC (<1%) 30 files
*.java3760 LOC (<1%) 49 files
*.cc2351 LOC (<1%) 5 files
*.rs1980 LOC (<1%) 10 files
*.inc1396 LOC (<1%) 1 file
*.xml1218 LOC (<1%) 28 files
*.ts1065 LOC (<1%) 7 files
*.c786 LOC (<1%) 1 file
*.json5607 LOC (<1%) 1 file
*.natvis243 LOC (<1%) 1 file
*.sql233 LOC (<1%) 1 file
*.toml164 LOC (<1%) 2 files
*.css142 LOC (<1%) 1 file
*.cfg116 LOC (<1%) 5 files
*.lex102 LOC (<1%) 1 file
*.vert91 LOC (<1%) 13 files
*.proto50 LOC (<1%) 1 file
*.ps137 LOC (<1%) 1 file
*.m11 LOC (<1%) 1 file
*.frag7 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
frag
hlsl
glsl
metal
gni
vert
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 2388 files match defined criteria (290,920 LOC, 38.4% vs. main code):
    • 488 *.cpp files (152,020 LOC)
    • 336 *.frag files (54,417 LOC)
    • 309 *.hlsl files (24,425 LOC)
    • 810 *.glsl files (17,228 LOC)
    • 4 *.inc files (14,842 LOC)
    • 320 *.metal files (9,958 LOC)
    • 27 *.js files (7,644 LOC)
    • 26 *.go files (4,833 LOC)
    • 20 *.h files (1,172 LOC)
    • 15 *.py files (1,121 LOC)
    • 2 *.gni files (1,042 LOC)
    • 8 *.bzl files (889 LOC)
    • 10 *.vert files (547 LOC)
    • 4 *.html files (434 LOC)
    • 3 *.mm files (260 LOC)
    • 6 *.sh files (88 LOC)
  • " *.cpp" is biggest, containing 52.25% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.cpp152020 LOC (52%) 488 files
*.frag54417 LOC (18%) 336 files
*.hlsl24425 LOC (8%) 309 files
*.glsl17228 LOC (5%) 810 files
*.inc14842 LOC (5%) 4 files
*.metal9958 LOC (3%) 320 files
*.js7644 LOC (2%) 27 files
*.go4833 LOC (1%) 26 files
*.h1172 LOC (<1%) 20 files
*.py1121 LOC (<1%) 15 files
*.gni1042 LOC (<1%) 2 files
*.bzl889 LOC (<1%) 8 files
*.vert547 LOC (<1%) 10 files
*.html434 LOC (<1%) 4 files
*.mm260 LOC (<1%) 3 files
*.sh88 LOC (<1%) 6 files
Generated Code
Automatically generated files, not manually changed after generation.
pfa
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.](ps|eps|pfa)".
    • files with any line of content like "// Generated using .*".
  • 14 files match defined criteria (24,206 LOC, 3.2% vs. main code):
    • 12 *.json files (23,804 LOC)
    • 1 *.cpp files (270 LOC)
    • 1 *.pfa files (132 LOC)
  • " *.json" is biggest, containing 98.34% of LOC.
  • " *.pfa" is smallest, containing 0.55% of LOC.


*.json23804 LOC (98%) 12 files
*.cpp270 LOC (1%) 1 file
*.pfa132 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
  • 79 files match defined criteria (1,812 LOC, 0.2% vs. main code):
    • 63 *.sh files (1,406 LOC)
    • 8 *.gradle files (269 LOC)
    • 6 *.xml files (125 LOC)
    • 2 *.bat files (12 LOC)
  • " *.sh" is biggest, containing 77.59% of LOC.
  • " *.bat" is smallest, containing 0.66% of LOC.


*.sh1406 LOC (77%) 63 files
*.gradle269 LOC (14%) 8 files
*.xml125 LOC (6%) 6 files
*.bat12 LOC (<1%) 2 files
Other Code
txt
mod
storyboard
plist
pb
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
  • 594 files match defined criteria (346,561 LOC, 45.8% vs. main code):
    • 403 *.json files (331,379 LOC)
    • 46 *.txt files (5,419 LOC)
    • 91 *.md files (5,377 LOC)
    • 12 *.html files (1,721 LOC)
    • 11 *.js files (1,129 LOC)
    • 14 *.py files (853 LOC)
    • 8 *.svg files (387 LOC)
    • 1 *.mod files (155 LOC)
    • 4 *.java files (94 LOC)
    • 1 *.storyboard files (24 LOC)
    • 1 *.plist files (10 LOC)
    • 1 *.pb files (9 LOC)
    • 1 *.properties files (4 LOC)
  • " *.json" is biggest, containing 95.62% of LOC.
  • " *.properties" is smallest, containing 0% of LOC.


*.json331379 LOC (95%) 403 files
*.txt5419 LOC (1%) 46 files
*.md5377 LOC (1%) 91 files
*.html1721 LOC (<1%) 12 files
*.js1129 LOC (<1%) 11 files
*.py853 LOC (<1%) 14 files
*.svg387 LOC (<1%) 8 files
*.mod155 LOC (<1%) 1 file
*.java94 LOC (<1%) 4 files
*.storyboard24 LOC (<1%) 1 file
*.plist10 LOC (<1%) 1 file
*.pb9 LOC (<1%) 1 file
*.properties4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:28