azure / azure-webjobs-sdk
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
props
targets
txt
gitattributes
fs
nuspec
resx
proto
fsproj
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.

main32095 LOC (48%) 695 files
test32898 LOC (50%) 229 files
generated58 LOC (<1%) 1 file
build and deployment278 LOC (<1%) 11 files
other270 LOC (<1%) 19 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 695 files match defined criteria (32,095 LOC, 100.0% vs. main code):
    • 679 *.cs files (31,764 LOC)
    • 9 *.props files (128 LOC)
    • 1 *.xml files (105 LOC)
    • 6 *.targets files (98 LOC)
  • " *.cs" is biggest, containing 98.97% of LOC.
  • " *.targets" is smallest, containing 0.31% of LOC.


*.cs31764 LOC (98%) 679 files
*.props128 LOC (<1%) 9 files
*.xml105 LOC (<1%) 1 file
*.targets98 LOC (<1%) 6 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
fsproj
proto
fs
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
  • 229 files match defined criteria (32,898 LOC, 102.5% vs. main code):
    • 219 *.cs files (32,696 LOC)
    • 6 *.csproj files (162 LOC)
    • 1 *.fsproj files (16 LOC)
    • 1 *.proto files (13 LOC)
    • 1 *.fs files (8 LOC)
    • 1 *.props files (3 LOC)
  • " *.cs" is biggest, containing 99.39% of LOC.
  • " *.props" is smallest, containing 0.01% of LOC.


*.cs32696 LOC (99%) 219 files
*.csproj162 LOC (<1%) 6 files
*.fsproj16 LOC (<1%) 1 file
*.proto13 LOC (<1%) 1 file
*.fs8 LOC (<1%) 1 file
*.props3 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 (58 LOC, 0.2% vs. main code). All matches are in *.cs files.


*.cs58 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".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (278 LOC, 0.9% vs. main code):
    • 10 *.csproj files (256 LOC)
    • 1 *.nuspec files (22 LOC)
  • " *.csproj" is biggest, containing 92.09% of LOC.
  • " *.nuspec" is smallest, containing 7.91% of LOC.


*.csproj256 LOC (92%) 10 files
*.nuspec22 LOC (7%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 19 files match defined criteria (270 LOC, 0.8% vs. main code):
    • 12 *.md files (196 LOC)
    • 6 *.json files (57 LOC)
    • 1 *.txt files (17 LOC)
  • " *.md" is biggest, containing 72.59% of LOC.
  • " *.txt" is smallest, containing 6.3% of LOC.


*.md196 LOC (72%) 12 files
*.json57 LOC (21%) 6 files
*.txt17 LOC (6%) 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)
  • *.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
  • *.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
  • *.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


2025-05-06 21:11