JetBrains / UnrealLink
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
in
txt
props
properties
cmd
gitattributes
targets
editorconfig
resx
csproj
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.

main16925 LOC (89%) 263 files
test531 LOC (2%) 16 files
generated106 LOC (<1%) 1 file
build and deployment177 LOC (<1%) 2 files
other1159 LOC (6%) 60 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 ".*".
  • 263 files match defined criteria (16,925 LOC, 100.0% vs. main code):
    • 104 *.h files (6,562 LOC)
    • 58 *.cpp files (3,720 LOC)
    • 56 *.kt files (3,057 LOC)
    • 27 *.cs files (2,515 LOC)
    • 3 *.kts files (621 LOC)
    • 8 *.hpp files (199 LOC)
    • 2 *.cmd files (199 LOC)
    • 3 *.props files (33 LOC)
    • 1 *.targets files (11 LOC)
    • 1 *.xml files (8 LOC)
  • " *.h" is biggest, containing 38.77% of LOC.
  • " *.xml" is smallest, containing 0.05% of LOC.


*.h6562 LOC (38%) 104 files
*.cpp3720 LOC (21%) 58 files
*.kt3057 LOC (18%) 56 files
*.cs2515 LOC (14%) 27 files
*.kts621 LOC (3%) 3 files
*.hpp199 LOC (1%) 8 files
*.cmd199 LOC (1%) 2 files
*.props33 LOC (<1%) 3 files
*.targets11 LOC (<1%) 1 file
*.xml8 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 16 files match defined criteria (531 LOC, 3.1% vs. main code):
    • 6 *.kt files (405 LOC)
    • 4 *.cs files (69 LOC)
    • 2 *.cpp files (26 LOC)
    • 2 *.xml files (19 LOC)
    • 2 *.h files (12 LOC)
  • " *.kt" is biggest, containing 76.27% of LOC.
  • " *.h" is smallest, containing 2.26% of LOC.


*.kt405 LOC (76%) 6 files
*.cs69 LOC (12%) 4 files
*.cpp26 LOC (4%) 2 files
*.xml19 LOC (3%) 2 files
*.h12 LOC (2%) 2 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 "[/][/][ ]*".
  • 1 file matches defined criteria (106 LOC, 0.6% vs. main code). All matches are in *.cs files.


*.cs106 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 ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (177 LOC, 1.0% vs. main code):
    • 1 *.bat files (131 LOC)
    • 1 *.csproj files (46 LOC)
  • " *.bat" is biggest, containing 74.01% of LOC.
  • " *.csproj" is smallest, containing 25.99% of LOC.


*.bat131 LOC (74%) 1 file
*.csproj46 LOC (25%) 1 file
Other Code
txt
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 ".*[.]properties".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 60 files match defined criteria (1,159 LOC, 6.8% vs. main code):
    • 4 *.md files (589 LOC)
    • 50 *.svg files (264 LOC)
    • 3 *.txt files (171 LOC)
    • 2 *.properties files (117 LOC)
    • 1 *.json files (18 LOC)
  • " *.md" is biggest, containing 50.82% of LOC.
  • " *.json" is smallest, containing 1.55% of LOC.


*.md589 LOC (50%) 4 files
*.svg264 LOC (22%) 50 files
*.txt171 LOC (14%) 3 files
*.properties117 LOC (10%) 2 files
*.json18 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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)
  • *.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)
  • *.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)
  • *.hpp 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
  • *.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
  • *.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


2026-01-18 17:03