azure / azure-functions-durable-extension
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
csx
liquid
fs
txt
editorconfig
props
vsixmanifest
targets
resx
proto
cmd
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.

main33517 LOC (47%) 311 files
test29279 LOC (41%) 214 files
generated891 LOC (1%) 3 files
build and deployment316 LOC (<1%) 6 files
other6593 LOC (9%) 226 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
liquid
props
vsixmanifest
targets
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 311 files match defined criteria (33,517 LOC, 100.0% vs. main code):
    • 276 *.cs files (24,896 LOC)
    • 1 *.xml files (5,247 LOC)
    • 15 *.js files (1,518 LOC)
    • 2 *.css files (810 LOC)
    • 1 *.proto files (591 LOC)
    • 3 *.ps1 files (157 LOC)
    • 8 *.liquid files (123 LOC)
    • 1 *.props files (75 LOC)
    • 1 *.py files (49 LOC)
    • 1 *.vsixmanifest files (22 LOC)
    • 1 *.targets files (20 LOC)
    • 1 *.cmd files (9 LOC)
  • " *.cs" is biggest, containing 74.28% of LOC.
  • " *.cmd" is smallest, containing 0.03% of LOC.


*.cs24896 LOC (74%) 276 files
*.xml5247 LOC (15%) 1 file
*.js1518 LOC (4%) 15 files
*.css810 LOC (2%) 2 files
*.proto591 LOC (1%) 1 file
*.ps1157 LOC (<1%) 3 files
*.liquid123 LOC (<1%) 8 files
*.props75 LOC (<1%) 1 file
*.py49 LOC (<1%) 1 file
*.vsixmanifest22 LOC (<1%) 1 file
*.targets20 LOC (<1%) 1 file
*.cmd9 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/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests[-].*".
  • 214 files match defined criteria (29,279 LOC, 87.4% vs. main code):
    • 156 *.cs files (27,884 LOC)
    • 4 *.ps1 files (513 LOC)
    • 19 *.csproj files (456 LOC)
    • 20 *.py files (196 LOC)
    • 13 *.js files (100 LOC)
    • 1 *.java files (92 LOC)
    • 1 *.gradle files (38 LOC)
  • " *.cs" is biggest, containing 95.24% of LOC.
  • " *.gradle" is smallest, containing 0.13% of LOC.


*.cs27884 LOC (95%) 156 files
*.ps1513 LOC (1%) 4 files
*.csproj456 LOC (1%) 19 files
*.py196 LOC (<1%) 20 files
*.js100 LOC (<1%) 13 files
*.java92 LOC (<1%) 1 file
*.gradle38 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 "[/][/][ ]*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (891 LOC, 2.7% vs. main code):
    • 2 *.json files (448 LOC)
    • 1 *.cs files (443 LOC)
  • " *.json" is biggest, containing 50.28% of LOC.
  • " *.cs" is smallest, containing 49.72% of LOC.


*.json448 LOC (50%) 2 files
*.cs443 LOC (49%) 1 file
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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]gradle".
  • 6 files match defined criteria (316 LOC, 0.9% vs. main code). All matches are in *.csproj files.


*.csproj316 LOC (100%) 6 files
Other Code
csx
fs
csproj
fsproj
props
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 ".*[.]editorconfig".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
  • 226 files match defined criteria (6,593 LOC, 19.7% vs. main code):
    • 52 *.cs files (2,472 LOC)
    • 102 *.json files (1,979 LOC)
    • 26 *.md files (1,020 LOC)
    • 16 *.csx files (327 LOC)
    • 6 *.fs files (282 LOC)
    • 11 *.csproj files (220 LOC)
    • 3 *.js files (108 LOC)
    • 2 *.html files (80 LOC)
    • 1 *.fsproj files (31 LOC)
    • 1 *.props files (27 LOC)
    • 1 *.svg files (25 LOC)
    • 5 *.txt files (22 LOC)
  • " *.cs" is biggest, containing 37.49% of LOC.
  • " *.txt" is smallest, containing 0.33% of LOC.


*.cs2472 LOC (37%) 52 files
*.json1979 LOC (30%) 102 files
*.md1020 LOC (15%) 26 files
*.csx327 LOC (4%) 16 files
*.fs282 LOC (4%) 6 files
*.csproj220 LOC (3%) 11 files
*.js108 LOC (1%) 3 files
*.html80 LOC (1%) 2 files
*.fsproj31 LOC (<1%) 1 file
*.props27 LOC (<1%) 1 file
*.svg25 LOC (<1%) 1 file
*.txt22 LOC (<1%) 5 files
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)
  • *.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
  • *.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
  • *.css files are analyzed with CssAnalyzer:
    • 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
  • *.proto 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
  • *.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
  • *.liquid 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
  • *.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
  • *.vsixmanifest 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
  • *.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


2025-05-06 21:21