JetBrains / ForTea
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
props
properties
flex
editorconfig
lex
resx
txt
nuspec
cmd
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.

main17651 LOC (68%) 451 files
test5626 LOC (21%) 251 files
generated1667 LOC (6%) 9 files
build and deployment464 LOC (1%) 8 files
other287 LOC (1%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lex
flex
targets
props
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 451 files match defined criteria (17,651 LOC, 100.0% vs. main code):
    • 373 *.cs files (15,325 LOC)
    • 55 *.kt files (1,324 LOC)
    • 4 *.kts files (445 LOC)
    • 3 *.xml files (277 LOC)
    • 2 *.lex files (70 LOC)
    • 1 *.ps1 files (61 LOC)
    • 2 *.flex files (56 LOC)
    • 5 *.targets files (53 LOC)
    • 5 *.props files (34 LOC)
    • 1 *.cmd files (6 LOC)
  • " *.cs" is biggest, containing 86.82% of LOC.
  • " *.cmd" is smallest, containing 0.03% of LOC.


*.cs15325 LOC (86%) 373 files
*.kt1324 LOC (7%) 55 files
*.kts445 LOC (2%) 4 files
*.xml277 LOC (1%) 3 files
*.lex70 LOC (<1%) 2 files
*.ps161 LOC (<1%) 1 file
*.flex56 LOC (<1%) 2 files
*.targets53 LOC (<1%) 5 files
*.props34 LOC (<1%) 5 files
*.cmd6 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
targets
props
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 ".*[.][Tt]ests[.].*".
  • 251 files match defined criteria (5,626 LOC, 31.9% vs. main code):
    • 76 *.csproj files (2,648 LOC)
    • 138 *.cs files (1,977 LOC)
    • 33 *.kt files (958 LOC)
    • 2 *.xml files (21 LOC)
    • 1 *.targets files (16 LOC)
    • 1 *.props files (6 LOC)
  • " *.csproj" is biggest, containing 47.07% of LOC.
  • " *.props" is smallest, containing 0.11% of LOC.


*.csproj2648 LOC (47%) 76 files
*.cs1977 LOC (35%) 138 files
*.kt958 LOC (17%) 33 files
*.xml21 LOC (<1%) 2 files
*.targets16 LOC (<1%) 1 file
*.props6 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 "[/][/][ ]*".
  • 9 files match defined criteria (1,667 LOC, 9.4% vs. main code). All matches are in *.cs files.


*.cs1667 LOC (100%) 9 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]sh".
  • 8 files match defined criteria (464 LOC, 2.6% vs. main code):
    • 5 *.csproj files (268 LOC)
    • 1 *.bat files (131 LOC)
    • 1 *.sh files (42 LOC)
    • 1 *.nuspec files (23 LOC)
  • " *.csproj" is biggest, containing 57.76% of LOC.
  • " *.nuspec" is smallest, containing 4.96% of LOC.


*.csproj268 LOC (57%) 5 files
*.bat131 LOC (28%) 1 file
*.sh42 LOC (9%) 1 file
*.nuspec23 LOC (4%) 1 file
Other Code
properties
txt
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 ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]json".
  • 15 files match defined criteria (287 LOC, 1.6% vs. main code):
    • 6 *.md files (213 LOC)
    • 2 *.properties files (30 LOC)
    • 3 *.json files (23 LOC)
    • 3 *.svg files (20 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 74.22% of LOC.
  • " *.txt" is smallest, containing 0.35% of LOC.


*.md213 LOC (74%) 6 files
*.properties30 LOC (10%) 2 files
*.json23 LOC (8%) 3 files
*.svg20 LOC (6%) 3 files
*.txt1 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)
  • *.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)
  • *.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)
  • *.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
  • *.lex 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
  • *.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
  • *.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
  • *.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
  • *.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


2026-01-18 17:07