azure / azure-functions-powershell-worker
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
proto
txt
gitattributes
resx
props
nuspec
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.

main7294 LOC (41%) 121 files
test8344 LOC (47%) 111 files
generated0 LOC (0%) 0 files
build and deployment87 LOC (<1%) 4 files
other1743 LOC (9%) 104 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 121 files match defined criteria (7,294 LOC, 100.0% vs. main code):
    • 111 *.cs files (5,852 LOC)
    • 3 *.proto files (622 LOC)
    • 2 *.psm1 files (539 LOC)
    • 2 *.ps1 files (172 LOC)
    • 2 *.psd1 files (99 LOC)
    • 1 *.props files (10 LOC)
  • " *.cs" is biggest, containing 80.23% of LOC.
  • " *.props" is smallest, containing 0.14% of LOC.


*.cs5852 LOC (80%) 111 files
*.proto622 LOC (8%) 3 files
*.psm1539 LOC (7%) 2 files
*.ps1172 LOC (2%) 2 files
*.psd199 LOC (1%) 2 files
*.props10 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]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
  • 111 files match defined criteria (8,344 LOC, 114.4% vs. main code):
    • 49 *.cs files (7,621 LOC)
    • 49 *.ps1 files (574 LOC)
    • 3 *.csproj files (69 LOC)
    • 4 *.psm1 files (46 LOC)
    • 6 *.psd1 files (34 LOC)
  • " *.cs" is biggest, containing 91.34% of LOC.
  • " *.psd1" is smallest, containing 0.41% of LOC.


*.cs7621 LOC (91%) 49 files
*.ps1574 LOC (6%) 49 files
*.csproj69 LOC (<1%) 3 files
*.psm146 LOC (<1%) 4 files
*.psd134 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]nuspec".
  • 4 files match defined criteria (87 LOC, 1.2% vs. main code):
    • 3 *.csproj files (60 LOC)
    • 1 *.nuspec files (27 LOC)
  • " *.csproj" is biggest, containing 68.97% of LOC.
  • " *.nuspec" is smallest, containing 31.03% of LOC.


*.csproj60 LOC (68%) 3 files
*.nuspec27 LOC (31%) 1 file
Other Code
txt
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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 ".*[.]txt".
  • 104 files match defined criteria (1,743 LOC, 23.9% vs. main code):
    • 66 *.json files (908 LOC)
    • 26 *.ps1 files (311 LOC)
    • 1 *.txt files (269 LOC)
    • 7 *.md files (231 LOC)
    • 3 *.psd1 files (17 LOC)
    • 1 *.csproj files (7 LOC)
  • " *.json" is biggest, containing 52.09% of LOC.
  • " *.csproj" is smallest, containing 0.4% of LOC.


*.json908 LOC (52%) 66 files
*.ps1311 LOC (17%) 26 files
*.txt269 LOC (15%) 1 file
*.md231 LOC (13%) 7 files
*.psd117 LOC (<1%) 3 files
*.csproj7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:35