azure / azure-functions-core-tools
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
txt
csproj
props
mod
npmignore
gitattributes
editorconfig
wxs
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.

main29609 LOC (68%) 338 files
test8495 LOC (19%) 121 files
generated621 LOC (1%) 1 file
build and deployment1154 LOC (2%) 9 files
other3577 LOC (8%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
wxs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 338 files match defined criteria (29,609 LOC, 100.0% vs. main code):
    • 299 *.cs files (22,791 LOC)
    • 1 *.yaml files (4,821 LOC)
    • 17 *.ps1 files (947 LOC)
    • 9 *.py files (444 LOC)
    • 1 *.go files (180 LOC)
    • 3 *.js files (132 LOC)
    • 5 *.props files (114 LOC)
    • 1 *.psm1 files (102 LOC)
    • 1 *.wxs files (71 LOC)
    • 1 *.psd1 files (7 LOC)
  • " *.cs" is biggest, containing 76.97% of LOC.
  • " *.psd1" is smallest, containing 0.02% of LOC.


*.cs22791 LOC (76%) 299 files
*.yaml4821 LOC (16%) 1 file
*.ps1947 LOC (3%) 17 files
*.py444 LOC (1%) 9 files
*.go180 LOC (<1%) 1 file
*.js132 LOC (<1%) 3 files
*.props114 LOC (<1%) 5 files
*.psm1102 LOC (<1%) 1 file
*.wxs71 LOC (<1%) 1 file
*.psd17 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 121 files match defined criteria (8,495 LOC, 28.7% vs. main code):
    • 113 *.cs files (8,335 LOC)
    • 7 *.csproj files (157 LOC)
    • 1 *.props files (3 LOC)
  • " *.cs" is biggest, containing 98.12% of LOC.
  • " *.props" is smallest, containing 0.04% of LOC.


*.cs8335 LOC (98%) 113 files
*.csproj157 LOC (1%) 7 files
*.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 ".*/npm[-]shrinkwrap[.]json".
  • 1 file matches defined criteria (621 LOC, 2.1% vs. main code). All matches are in *.json files.


*.json621 LOC (100%) 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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 9 files match defined criteria (1,154 LOC, 3.9% vs. main code):
    • 4 *.sh files (793 LOC)
    • 5 *.csproj files (361 LOC)
  • " *.sh" is biggest, containing 68.72% of LOC.
  • " *.csproj" is smallest, containing 31.28% of LOC.


*.sh793 LOC (68%) 4 files
*.csproj361 LOC (31%) 5 files
Other Code
txt
mod
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 ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]editorconfig".
  • 61 files match defined criteria (3,577 LOC, 12.1% vs. main code):
    • 27 *.json files (3,001 LOC)
    • 7 *.md files (540 LOC)
    • 26 *.txt files (34 LOC)
    • 1 *.mod files (2 LOC)
  • " *.json" is biggest, containing 83.9% of LOC.
  • " *.mod" is smallest, containing 0.06% of LOC.


*.json3001 LOC (83%) 27 files
*.md540 LOC (15%) 7 files
*.txt34 LOC (<1%) 26 files
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:19