azure / amqpnetlite
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
csproj
nuspec
resx
xaml
txt
cmd
gitattributes
props
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.

main18841 LOC (46%) 187 files
test12282 LOC (30%) 60 files
generated479 LOC (1%) 6 files
build and deployment2909 LOC (7%) 20 files
other5933 LOC (14%) 110 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 187 files match defined criteria (18,841 LOC, 100.0% vs. main code):
    • 184 *.cs files (18,529 LOC)
    • 2 *.cmd files (294 LOC)
    • 1 *.props files (18 LOC)
  • " *.cs" is biggest, containing 98.34% of LOC.
  • " *.props" is smallest, containing 0.1% of LOC.


*.cs18529 LOC (98%) 184 files
*.cmd294 LOC (1%) 2 files
*.props18 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 60 files match defined criteria (12,282 LOC, 65.2% vs. main code):
    • 50 *.cs files (11,341 LOC)
    • 10 *.csproj files (941 LOC)
  • " *.cs" is biggest, containing 92.34% of LOC.
  • " *.csproj" is smallest, containing 7.66% of LOC.


*.cs11341 LOC (92%) 50 files
*.csproj941 LOC (7%) 10 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 6 files match defined criteria (479 LOC, 2.5% vs. main code). All matches are in *.cs files.


*.cs479 LOC (100%) 6 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 ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 20 files match defined criteria (2,909 LOC, 15.4% vs. main code):
    • 12 *.csproj files (2,574 LOC)
    • 8 *.nuspec files (335 LOC)
  • " *.csproj" is biggest, containing 88.48% of LOC.
  • " *.nuspec" is smallest, containing 11.52% of LOC.


*.csproj2574 LOC (88%) 12 files
*.nuspec335 LOC (11%) 8 files
Other Code
csproj
txt
xaml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 110 files match defined criteria (5,933 LOC, 31.5% vs. main code):
    • 74 *.cs files (3,915 LOC)
    • 25 *.csproj files (1,588 LOC)
    • 1 *.txt files (149 LOC)
    • 3 *.md files (134 LOC)
    • 4 *.xaml files (83 LOC)
    • 2 *.xml files (48 LOC)
    • 1 *.json files (16 LOC)
  • " *.cs" is biggest, containing 65.99% of LOC.
  • " *.json" is smallest, containing 0.27% of LOC.


*.cs3915 LOC (65%) 74 files
*.csproj1588 LOC (26%) 25 files
*.txt149 LOC (2%) 1 file
*.md134 LOC (2%) 3 files
*.xaml83 LOC (1%) 4 files
*.xml48 LOC (<1%) 2 files
*.json16 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)
  • *.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
  • *.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


2025-05-06 21:12