JetBrains / teamcity-msbuild-logger
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
cmd
csproj
proj
resx
txt
nuspec
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.

main4481 LOC (75%) 97 files
test1184 LOC (19%) 13 files
generated199 LOC (3%) 1 file
build and deployment62 LOC (1%) 2 files
other38 LOC (<1%) 2 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 97 files match defined criteria (4,481 LOC, 100.0% vs. main code):
    • 93 *.cs files (4,333 LOC)
    • 3 *.cmd files (101 LOC)
    • 1 *.proj files (47 LOC)
  • " *.cs" is biggest, containing 96.7% of LOC.
  • " *.proj" is smallest, containing 1.05% of LOC.


*.cs4333 LOC (96%) 93 files
*.cmd101 LOC (2%) 3 files
*.proj47 LOC (1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/IntegrationTests?/.*".
  • 13 files match defined criteria (1,184 LOC, 26.4% vs. main code):
    • 10 *.cs files (1,155 LOC)
    • 2 *.csproj files (27 LOC)
    • 1 *.cmd files (2 LOC)
  • " *.cs" is biggest, containing 97.55% of LOC.
  • " *.cmd" is smallest, containing 0.17% of LOC.


*.cs1155 LOC (97%) 10 files
*.csproj27 LOC (2%) 2 files
*.cmd2 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 (199 LOC, 4.4% vs. main code). All matches are in *.cs files.


*.cs199 LOC (100%) 1 file
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 ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (62 LOC, 1.4% vs. main code):
    • 1 *.csproj files (40 LOC)
    • 1 *.nuspec files (22 LOC)
  • " *.csproj" is biggest, containing 64.52% of LOC.
  • " *.nuspec" is smallest, containing 35.48% of LOC.


*.csproj40 LOC (64%) 1 file
*.nuspec22 LOC (35%) 1 file
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 2 files match defined criteria (38 LOC, 0.8% vs. main code):
    • 1 *.md files (31 LOC)
    • 1 *.json files (7 LOC)
  • " *.md" is biggest, containing 81.58% of LOC.
  • " *.json" is smallest, containing 18.42% of LOC.


*.md31 LOC (81%) 1 file
*.json7 LOC (18%) 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)
  • *.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
  • *.proj 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


2026-01-18 16:54