JetBrains / godot-support
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
gd
txt
properties
csproj
flex
targets
props
editorconfig
gitattributes
vcxproj
clang-format
gitmodules
cmd
dotsettings
cfg
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.

main26991 LOC (37%) 685 files
test6642 LOC (9%) 264 files
generated12135 LOC (16%) 305 files
build and deployment437 LOC (<1%) 6 files
other26618 LOC (36%) 1,188 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
cmd
gd
vcxproj
targets
props
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 685 files match defined criteria (26,991 LOC, 100.0% vs. main code):
    • 532 *.kt files (19,112 LOC)
    • 65 *.cs files (2,820 LOC)
    • 3 *.java files (1,068 LOC)
    • 5 *.flex files (689 LOC)
    • 8 *.kts files (647 LOC)
    • 6 *.cpp files (584 LOC)
    • 9 *.xml files (547 LOC)
    • 5 *.php files (414 LOC)
    • 27 *.html files (332 LOC)
    • 1 *.cmd files (198 LOC)
    • 5 *.gd files (181 LOC)
    • 1 *.vcxproj files (110 LOC)
    • 2 *.py files (95 LOC)
    • 3 *.h files (63 LOC)
    • 3 *.toml files (47 LOC)
    • 4 *.targets files (38 LOC)
    • 3 *.props files (31 LOC)
    • 1 *.cfg files (9 LOC)
    • 2 *.yaml files (6 LOC)
  • " *.kt" is biggest, containing 70.81% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.kt19112 LOC (70%) 532 files
*.cs2820 LOC (10%) 65 files
*.java1068 LOC (3%) 3 files
*.flex689 LOC (2%) 5 files
*.kts647 LOC (2%) 8 files
*.cpp584 LOC (2%) 6 files
*.xml547 LOC (2%) 9 files
*.php414 LOC (1%) 5 files
*.html332 LOC (1%) 27 files
*.cmd198 LOC (<1%) 1 file
*.gd181 LOC (<1%) 5 files
*.vcxproj110 LOC (<1%) 1 file
*.py95 LOC (<1%) 2 files
*.h63 LOC (<1%) 3 files
*.toml47 LOC (<1%) 3 files
*.targets38 LOC (<1%) 4 files
*.props31 LOC (<1%) 3 files
*.cfg9 LOC (<1%) 1 file
*.yaml6 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
gd
csproj
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[.].*".
    • files with paths like ".*/test_.*".
  • 264 files match defined criteria (6,642 LOC, 24.6% vs. main code):
    • 214 *.gd files (4,894 LOC)
    • 39 *.kt files (1,592 LOC)
    • 5 *.cs files (90 LOC)
    • 4 *.xml files (46 LOC)
    • 2 *.csproj files (20 LOC)
  • " *.gd" is biggest, containing 73.68% of LOC.
  • " *.csproj" is smallest, containing 0.3% of LOC.


*.gd4894 LOC (73%) 214 files
*.kt1592 LOC (23%) 39 files
*.cs90 LOC (1%) 5 files
*.xml46 LOC (<1%) 4 files
*.csproj20 LOC (<1%) 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 "[/][/][ ]*".
    • files with paths like ".*[.]java" AND any line of content like ".*[/][/] This is a generated file[.] Not intended for manual editing[.].*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 305 files match defined criteria (12,135 LOC, 45.0% vs. main code):
    • 304 *.java files (11,976 LOC)
    • 1 *.cs files (159 LOC)
  • " *.java" is biggest, containing 98.69% of LOC.
  • " *.cs" is smallest, containing 1.31% of LOC.


*.java11976 LOC (98%) 304 files
*.cs159 LOC (1%) 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitmodules".
  • 6 files match defined criteria (437 LOC, 1.6% vs. main code):
    • 3 *.bat files (316 LOC)
    • 3 *.csproj files (121 LOC)
  • " *.bat" is biggest, containing 72.31% of LOC.
  • " *.csproj" is smallest, containing 27.69% of LOC.


*.bat316 LOC (72%) 3 files
*.csproj121 LOC (27%) 3 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]txt".
  • 1188 files match defined criteria (26,618 LOC, 98.6% vs. main code):
    • 186 *.txt files (23,952 LOC)
    • 966 *.svg files (1,148 LOC)
    • 22 *.md files (706 LOC)
    • 5 *.kt files (547 LOC)
    • 7 *.properties files (245 LOC)
    • 2 *.json files (20 LOC)
  • " *.txt" is biggest, containing 89.98% of LOC.
  • " *.json" is smallest, containing 0.08% of LOC.


*.txt23952 LOC (89%) 186 files
*.svg1148 LOC (4%) 966 files
*.md706 LOC (2%) 22 files
*.kt547 LOC (2%) 5 files
*.properties245 LOC (<1%) 7 files
*.json20 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.java files are analyzed with JavaAnalyzer:
    • 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 package names)
  • *.flex 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
  • *.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)
  • *.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
  • *.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
  • *.php files are analyzed with PhpAnalyzer:
    • 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
  • *.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
  • *.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
  • *.gd 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
  • *.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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
  • *.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
  • *.toml 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
  • *.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
  • *.cfg files are analyzed with CfgAnalyzer:
    • 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
  • *.yaml files are analyzed with YamlAnalyzer:
    • 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:12