JetBrains / NuGet.BuildTasks
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
resx
targets
txt
props
csproj
gitattributes
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.

main1233 LOC (30%) 13 files
test1231 LOC (30%) 16 files
generated256 LOC (6%) 3 files
build and deployment74 LOC (1%) 1 file
other1198 LOC (30%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
targets
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 13 files match defined criteria (1,233 LOC, 100.0% vs. main code):
    • 8 *.cs files (970 LOC)
    • 3 *.targets files (254 LOC)
    • 2 *.props files (9 LOC)
  • " *.cs" is biggest, containing 78.67% of LOC.
  • " *.props" is smallest, containing 0.73% of LOC.


*.cs970 LOC (78%) 8 files
*.targets254 LOC (20%) 3 files
*.props9 LOC (<1%) 2 files
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[.].*".
  • 16 files match defined criteria (1,231 LOC, 99.8% vs. main code):
    • 15 *.cs files (1,112 LOC)
    • 1 *.csproj files (119 LOC)
  • " *.cs" is biggest, containing 90.33% of LOC.
  • " *.csproj" is smallest, containing 9.67% of LOC.


*.cs1112 LOC (90%) 15 files
*.csproj119 LOC (9%) 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 "[/][/][ ]*".
  • 3 files match defined criteria (256 LOC, 20.8% vs. main code). All matches are in *.cs files.


*.cs256 LOC (100%) 3 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (74 LOC, 6.0% vs. main code). All matches are in *.csproj files.


*.csproj74 LOC (100%) 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 ".*/[.]gitignore".
  • 15 files match defined criteria (1,198 LOC, 97.2% vs. main code):
    • 12 *.json files (1,177 LOC)
    • 2 *.txt files (17 LOC)
    • 1 *.md files (4 LOC)
  • " *.json" is biggest, containing 98.25% of LOC.
  • " *.md" is smallest, containing 0.33% of LOC.


*.json1177 LOC (98%) 12 files
*.txt17 LOC (1%) 2 files
*.md4 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)
  • *.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


2026-01-18 17:07