JetBrains / rd
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
txt
csproj
cmd
properties
dotsettings
in
props
gitattributes
targets
patch
editorconfig
nuspec
clang-format
gitmodules
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.

main62487 LOC (58%) 706 files
test34696 LOC (32%) 396 files
generated8086 LOC (7%) 30 files
build and deployment381 LOC (<1%) 10 files
other1188 LOC (1%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
props
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 706 files match defined criteria (62,487 LOC, 100.0% vs. main code):
    • 338 *.cs files (33,748 LOC)
    • 201 *.kt files (18,251 LOC)
    • 99 *.h files (6,539 LOC)
    • 44 *.cpp files (2,511 LOC)
    • 14 *.kts files (615 LOC)
    • 3 *.cmake files (536 LOC)
    • 4 *.cmd files (219 LOC)
    • 2 *.props files (38 LOC)
    • 1 *.targets files (30 LOC)
  • " *.cs" is biggest, containing 54.01% of LOC.
  • " *.targets" is smallest, containing 0.05% of LOC.


*.cs33748 LOC (54%) 338 files
*.kt18251 LOC (29%) 201 files
*.h6539 LOC (10%) 99 files
*.cpp2511 LOC (4%) 44 files
*.kts615 LOC (<1%) 14 files
*.cmake536 LOC (<1%) 3 files
*.cmd219 LOC (<1%) 4 files
*.props38 LOC (<1%) 2 files
*.targets30 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
  • 396 files match defined criteria (34,696 LOC, 55.5% vs. main code):
    • 139 *.kt files (15,341 LOC)
    • 142 *.cpp files (10,968 LOC)
    • 115 *.h files (8,387 LOC)
  • " *.kt" is biggest, containing 44.22% of LOC.
  • " *.h" is smallest, containing 24.17% of LOC.


*.kt15341 LOC (44%) 139 files
*.cpp10968 LOC (31%) 142 files
*.h8387 LOC (24%) 115 files
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 "[/][/][ ]*".
  • 30 files match defined criteria (8,086 LOC, 12.9% vs. main code). All matches are in *.cs files.


*.cs8086 LOC (100%) 30 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitmodules".
  • 10 files match defined criteria (381 LOC, 0.6% vs. main code):
    • 8 *.csproj files (242 LOC)
    • 1 *.bat files (122 LOC)
    • 1 *.nuspec files (17 LOC)
  • " *.csproj" is biggest, containing 63.52% of LOC.
  • " *.nuspec" is smallest, containing 4.46% of LOC.


*.csproj242 LOC (63%) 8 files
*.bat122 LOC (32%) 1 file
*.nuspec17 LOC (4%) 1 file
Other Code
txt
patch
properties
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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Dd]emos?/.*".
  • 28 files match defined criteria (1,188 LOC, 1.9% vs. main code):
    • 16 *.txt files (427 LOC)
    • 1 *.patch files (401 LOC)
    • 6 *.md files (167 LOC)
    • 1 *.kt files (162 LOC)
    • 2 *.json files (23 LOC)
    • 2 *.properties files (8 LOC)
  • " *.txt" is biggest, containing 35.94% of LOC.
  • " *.properties" is smallest, containing 0.67% of LOC.


*.txt427 LOC (35%) 16 files
*.patch401 LOC (33%) 1 file
*.md167 LOC (14%) 6 files
*.kt162 LOC (13%) 1 file
*.json23 LOC (1%) 2 files
*.properties8 LOC (<1%) 2 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)
  • *.kt files are analyzed with KotlinAnalyzer:
    • 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
    • Basic heuristic dependency analysis (based on imports and package statements)
  • *.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
  • *.kts files are analyzed with KotlinAnalyzer:
    • 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
    • Basic heuristic dependency analysis (based on imports and package statements)
  • *.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
  • *.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
  • *.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
  • *.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


2026-01-18 16:55