azure / azure-functions-sql-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
csx
csproj
editorconfig
txt
props
npmrc
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.

main5353 LOC (13%) 79 files
test7219 LOC (18%) 178 files
generated2677 LOC (6%) 3 files
build and deployment290 LOC (<1%) 5 files
other23933 LOC (60%) 395 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 79 files match defined criteria (5,353 LOC, 100.0% vs. main code):
    • 70 *.cs files (5,190 LOC)
    • 2 *.props files (68 LOC)
    • 4 *.java files (50 LOC)
    • 3 *.ps1 files (45 LOC)
  • " *.cs" is biggest, containing 96.95% of LOC.
  • " *.ps1" is smallest, containing 0.84% of LOC.


*.cs5190 LOC (96%) 70 files
*.props68 LOC (1%) 2 files
*.java50 LOC (<1%) 4 files
*.ps145 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csx
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 178 files match defined criteria (7,219 LOC, 134.9% vs. main code):
    • 56 *.cs files (4,851 LOC)
    • 30 *.java files (932 LOC)
    • 20 *.csx files (456 LOC)
    • 19 *.ps1 files (279 LOC)
    • 25 *.py files (230 LOC)
    • 19 *.js files (171 LOC)
    • 1 *.xml files (134 LOC)
    • 1 *.csproj files (91 LOC)
    • 7 *.sql files (75 LOC)
  • " *.cs" is biggest, containing 67.2% of LOC.
  • " *.sql" is smallest, containing 1.04% of LOC.


*.cs4851 LOC (67%) 56 files
*.java932 LOC (12%) 30 files
*.csx456 LOC (6%) 20 files
*.ps1279 LOC (3%) 19 files
*.py230 LOC (3%) 25 files
*.js171 LOC (2%) 19 files
*.xml134 LOC (1%) 1 file
*.csproj91 LOC (1%) 1 file
*.sql75 LOC (1%) 7 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 ".*/package[-]lock[.]json".
  • 3 files match defined criteria (2,677 LOC, 50.0% vs. main code). All matches are in *.json files.


*.json2677 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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
  • 5 files match defined criteria (290 LOC, 5.4% vs. main code):
    • 4 *.csproj files (153 LOC)
    • 1 *.xml files (137 LOC)
  • " *.csproj" is biggest, containing 52.76% of LOC.
  • " *.xml" is smallest, containing 47.24% of LOC.


*.csproj153 LOC (52%) 4 files
*.xml137 LOC (47%) 1 file
Other Code
txt
csx
csproj
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 ".*[.]editorconfig".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 395 files match defined criteria (23,933 LOC, 447.1% vs. main code):
    • 198 *.json files (16,398 LOC)
    • 3 *.txt files (3,561 LOC)
    • 53 *.cs files (1,341 LOC)
    • 29 *.java files (848 LOC)
    • 22 *.csx files (384 LOC)
    • 20 *.ps1 files (358 LOC)
    • 24 *.py files (264 LOC)
    • 7 *.md files (264 LOC)
    • 22 *.js files (229 LOC)
    • 4 *.xml files (164 LOC)
    • 2 *.csproj files (65 LOC)
    • 10 *.sql files (49 LOC)
    • 1 *.psd1 files (8 LOC)
  • " *.json" is biggest, containing 68.52% of LOC.
  • " *.psd1" is smallest, containing 0.03% of LOC.


*.json16398 LOC (68%) 198 files
*.txt3561 LOC (14%) 3 files
*.cs1341 LOC (5%) 53 files
*.java848 LOC (3%) 29 files
*.csx384 LOC (1%) 22 files
*.ps1358 LOC (1%) 20 files
*.py264 LOC (1%) 24 files
*.md264 LOC (1%) 7 files
*.js229 LOC (<1%) 22 files
*.xml164 LOC (<1%) 4 files
*.csproj65 LOC (<1%) 2 files
*.sql49 LOC (<1%) 10 files
*.psd18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:03