JetBrains / teamcity-event-listener
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
feature
txt
csproj
nuspec
cmd
cake
dotsettings
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.

main2876 LOC (17%) 28 files
test5555 LOC (33%) 60 files
generated6236 LOC (38%) 11 files
build and deployment160 LOC (<1%) 5 files
other1579 LOC (9%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cake
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 28 files match defined criteria (2,876 LOC, 100.0% vs. main code):
    • 22 *.cs files (1,281 LOC)
    • 1 *.xml files (1,147 LOC)
    • 1 *.cake files (397 LOC)
    • 1 *.ps1 files (47 LOC)
    • 3 *.cmd files (4 LOC)
  • " *.cs" is biggest, containing 44.54% of LOC.
  • " *.cmd" is smallest, containing 0.14% of LOC.


*.cs1281 LOC (44%) 22 files
*.xml1147 LOC (39%) 1 file
*.cake397 LOC (13%) 1 file
*.ps147 LOC (1%) 1 file
*.cmd4 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
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 ".*[.]tests[.].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.]feature".
  • 60 files match defined criteria (5,555 LOC, 193.2% vs. main code):
    • 47 *.cs files (3,069 LOC)
    • 11 *.feature files (2,131 LOC)
    • 2 *.csproj files (355 LOC)
  • " *.cs" is biggest, containing 55.25% of LOC.
  • " *.csproj" is smallest, containing 6.39% of LOC.


*.cs3069 LOC (55%) 47 files
*.feature2131 LOC (38%) 11 files
*.csproj355 LOC (6%) 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 ".*[.]feature[.]cs".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 11 files match defined criteria (6,236 LOC, 216.8% vs. main code). All matches are in *.cs files.


*.cs6236 LOC (100%) 11 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 5 files match defined criteria (160 LOC, 5.6% vs. main code):
    • 3 *.nuspec files (66 LOC)
    • 1 *.sh files (51 LOC)
    • 1 *.csproj files (43 LOC)
  • " *.nuspec" is biggest, containing 41.25% of LOC.
  • " *.csproj" is smallest, containing 26.88% of LOC.


*.nuspec66 LOC (41%) 3 files
*.sh51 LOC (31%) 1 file
*.csproj43 LOC (26%) 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 ".*/[.]gitignore".
  • 10 files match defined criteria (1,579 LOC, 54.9% vs. main code):
    • 9 *.txt files (1,577 LOC)
    • 1 *.md files (2 LOC)
  • " *.txt" is biggest, containing 99.87% of LOC.
  • " *.md" is smallest, containing 0.13% of LOC.


*.txt1577 LOC (99%) 9 files
*.md2 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)
  • *.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
  • *.cake 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
  • *.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:37