JetBrains / resharper-cyclomatic-complexity
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
properties
props
xaml
gitattributes
dotsettings
txt
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.

main1075 LOC (10%) 28 files
test1300 LOC (12%) 27 files
generated7549 LOC (73%) 1 file
build and deployment188 LOC (1%) 3 files
other101 LOC (<1%) 6 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xaml
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 28 files match defined criteria (1,075 LOC, 100.0% vs. main code):
    • 12 *.cs files (508 LOC)
    • 3 *.kts files (240 LOC)
    • 4 *.ps1 files (125 LOC)
    • 1 *.xaml files (67 LOC)
    • 3 *.kt files (54 LOC)
    • 2 *.props files (45 LOC)
    • 2 *.xml files (28 LOC)
    • 1 *.toml files (8 LOC)
  • " *.cs" is biggest, containing 47.26% of LOC.
  • " *.toml" is smallest, containing 0.74% of LOC.


*.cs508 LOC (47%) 12 files
*.kts240 LOC (22%) 3 files
*.ps1125 LOC (11%) 4 files
*.xaml67 LOC (6%) 1 file
*.kt54 LOC (5%) 3 files
*.props45 LOC (4%) 2 files
*.xml28 LOC (2%) 2 files
*.toml8 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 27 files match defined criteria (1,300 LOC, 120.9% vs. main code):
    • 10 *.cs files (639 LOC)
    • 8 *.js files (302 LOC)
    • 6 *.ts files (226 LOC)
    • 2 *.cpp files (108 LOC)
    • 1 *.csproj files (25 LOC)
  • " *.cs" is biggest, containing 49.15% of LOC.
  • " *.csproj" is smallest, containing 1.92% of LOC.


*.cs639 LOC (49%) 10 files
*.js302 LOC (23%) 8 files
*.ts226 LOC (17%) 6 files
*.cpp108 LOC (8%) 2 files
*.csproj25 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 "[/][/][ ]*".
  • 1 file matches defined criteria (7,549 LOC, 702.2% vs. main code). All matches are in *.cs files.


*.cs7549 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 ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (188 LOC, 17.5% vs. main code):
    • 1 *.bat files (122 LOC)
    • 2 *.csproj files (66 LOC)
  • " *.bat" is biggest, containing 64.89% of LOC.
  • " *.csproj" is smallest, containing 35.11% of LOC.


*.bat122 LOC (64%) 1 file
*.csproj66 LOC (35%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 6 files match defined criteria (101 LOC, 9.4% vs. main code):
    • 2 *.md files (71 LOC)
    • 2 *.properties files (22 LOC)
    • 2 *.json files (8 LOC)
  • " *.md" is biggest, containing 70.3% of LOC.
  • " *.json" is smallest, containing 7.92% of LOC.


*.md71 LOC (70%) 2 files
*.properties22 LOC (21%) 2 files
*.json8 LOC (7%) 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)
  • *.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)
  • *.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
  • *.xaml 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
  • *.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)
  • *.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
  • *.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
  • *.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


2026-01-18 16:44