JetBrains / YouTrackSharp
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
dotsettings
jq
gitattributes
targets
resx
editorconfig
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.

main4150 LOC (59%) 69 files
test2140 LOC (30%) 57 files
generated63 LOC (<1%) 1 file
build and deployment86 LOC (1%) 4 files
other559 LOC (7%) 6 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
targets
jq
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 69 files match defined criteria (4,150 LOC, 100.0% vs. main code):
    • 64 *.cs files (4,020 LOC)
    • 2 *.ps1 files (83 LOC)
    • 1 *.targets files (31 LOC)
    • 1 *.jq files (11 LOC)
    • 1 *.cmd files (5 LOC)
  • " *.cs" is biggest, containing 96.87% of LOC.
  • " *.cmd" is smallest, containing 0.12% of LOC.


*.cs4020 LOC (96%) 64 files
*.ps183 LOC (2%) 2 files
*.targets31 LOC (<1%) 1 file
*.jq11 LOC (<1%) 1 file
*.cmd5 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]ests[.].*".
  • 57 files match defined criteria (2,140 LOC, 51.6% vs. main code):
    • 56 *.cs files (2,119 LOC)
    • 1 *.csproj files (21 LOC)
  • " *.cs" is biggest, containing 99.02% of LOC.
  • " *.csproj" is smallest, containing 0.98% of LOC.


*.cs2119 LOC (99%) 56 files
*.csproj21 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 (63 LOC, 1.5% vs. main code). All matches are in *.cs files.


*.cs63 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 4 files match defined criteria (86 LOC, 2.1% vs. main code):
    • 2 *.csproj files (47 LOC)
    • 1 *.sh files (37 LOC)
    • 1 *.bat files (2 LOC)
  • " *.csproj" is biggest, containing 54.65% of LOC.
  • " *.bat" is smallest, containing 2.33% of LOC.


*.csproj47 LOC (54%) 2 files
*.sh37 LOC (43%) 1 file
*.bat2 LOC (2%) 1 file
Other Code
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (559 LOC, 13.5% vs. main code):
    • 2 *.json files (291 LOC)
    • 2 *.txt files (199 LOC)
    • 2 *.md files (69 LOC)
  • " *.json" is biggest, containing 52.06% of LOC.
  • " *.md" is smallest, containing 12.34% of LOC.


*.json291 LOC (52%) 2 files
*.txt199 LOC (35%) 2 files
*.md69 LOC (12%) 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)
  • *.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
  • *.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
  • *.jq 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


2026-01-18 16:35