JetBrains / NuGetOperations
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
nuspec
txt
xsd
cscfg
resx
targets
wsdl
csdef
cfg
ccproj
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.

main26771 LOC (78%) 275 files
test99 LOC (<1%) 3 files
generated5946 LOC (17%) 5 files
build and deployment1045 LOC (3%) 12 files
other179 LOC (<1%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
cmd
wsdl
ccproj
cscfg
csdef
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 275 files match defined criteria (26,771 LOC, 100.0% vs. main code):
    • 29 *.xml files (13,101 LOC)
    • 156 *.cs files (9,460 LOC)
    • 7 *.ps1xml files (933 LOC)
    • 23 *.ps1 files (891 LOC)
    • 21 *.sql files (875 LOC)
    • 3 *.psm1 files (315 LOC)
    • 3 *.xsd files (290 LOC)
    • 1 *.py files (252 LOC)
    • 3 *.psd1 files (225 LOC)
    • 1 *.html files (114 LOC)
    • 13 *.cmd files (102 LOC)
    • 2 *.wsdl files (78 LOC)
    • 1 *.ccproj files (61 LOC)
    • 3 *.cscfg files (27 LOC)
    • 2 *.csdef files (23 LOC)
    • 4 *.js files (14 LOC)
    • 2 *.php files (6 LOC)
    • 1 *.cfg files (4 LOC)
  • " *.xml" is biggest, containing 48.94% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.xml13101 LOC (48%) 29 files
*.cs9460 LOC (35%) 156 files
*.ps1xml933 LOC (3%) 7 files
*.ps1891 LOC (3%) 23 files
*.sql875 LOC (3%) 21 files
*.psm1315 LOC (1%) 3 files
*.xsd290 LOC (1%) 3 files
*.py252 LOC (<1%) 1 file
*.psd1225 LOC (<1%) 3 files
*.html114 LOC (<1%) 1 file
*.cmd102 LOC (<1%) 13 files
*.wsdl78 LOC (<1%) 2 files
*.ccproj61 LOC (<1%) 1 file
*.cscfg27 LOC (<1%) 3 files
*.csdef23 LOC (<1%) 2 files
*.js14 LOC (<1%) 4 files
*.php6 LOC (<1%) 2 files
*.cfg4 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/.*".
  • 3 files match defined criteria (99 LOC, 0.4% vs. main code):
    • 1 *.csproj files (73 LOC)
    • 2 *.cs files (26 LOC)
  • " *.csproj" is biggest, containing 73.74% of LOC.
  • " *.cs" is smallest, containing 26.26% of LOC.


*.csproj73 LOC (73%) 1 file
*.cs26 LOC (26%) 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 any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 5 files match defined criteria (5,946 LOC, 22.2% vs. main code):
    • 1 *.xml files (4,971 LOC)
    • 4 *.cs files (975 LOC)
  • " *.xml" is biggest, containing 83.6% of LOC.
  • " *.cs" is smallest, containing 16.4% of LOC.


*.xml4971 LOC (83%) 1 file
*.cs975 LOC (16%) 4 files
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 ".*[.]nuspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 12 files match defined criteria (1,045 LOC, 3.9% vs. main code):
    • 8 *.csproj files (982 LOC)
    • 4 *.nuspec files (63 LOC)
  • " *.csproj" is biggest, containing 93.97% of LOC.
  • " *.nuspec" is smallest, containing 6.03% of LOC.


*.csproj982 LOC (93%) 8 files
*.nuspec63 LOC (6%) 4 files
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/COPYRIGHT[.][a-z0-9]+".
  • 7 files match defined criteria (179 LOC, 0.7% vs. main code):
    • 3 *.md files (171 LOC)
    • 3 *.txt files (7 LOC)
    • 1 *.json files (1 LOC)
  • " *.md" is biggest, containing 95.53% of LOC.
  • " *.json" is smallest, containing 0.56% of LOC.


*.md171 LOC (95%) 3 files
*.txt7 LOC (3%) 3 files
*.json1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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)
  • *.ps1xml 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
  • *.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
  • *.sql files are analyzed with SqlAnalyzer:
    • 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
  • *.psm1 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
  • *.xsd 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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
  • *.psd1 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
  • *.html files are analyzed with HtmlAnalyzer:
    • 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
  • *.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
  • *.wsdl 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
  • *.ccproj 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
  • *.cscfg 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
  • *.csdef 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
  • *.js files are analyzed with JavaScriptAnalyzer:
    • 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
    • No dependency analysis
  • *.php files are analyzed with PhpAnalyzer:
    • 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
  • *.cfg files are analyzed with CfgAnalyzer:
    • 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:38