azure / azure-functions-templates
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
fs
nuspec
csproj
fsproj
resx
txt
jsonc
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.

main5484 LOC (20%) 344 files
test0 LOC (0%) 0 files
generated3 LOC (<1%) 1 file
build and deployment1388 LOC (5%) 21 files
other19580 LOC (74%) 621 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
csx
fs
fsproj
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 344 files match defined criteria (5,484 LOC, 100.0% vs. main code):
    • 73 *.cs files (2,058 LOC)
    • 111 *.py files (1,147 LOC)
    • 35 *.js files (658 LOC)
    • 40 *.csx files (469 LOC)
    • 31 *.ps1 files (394 LOC)
    • 22 *.fs files (384 LOC)
    • 28 *.ts files (261 LOC)
    • 3 *.fsproj files (66 LOC)
    • 1 *.jsonc files (47 LOC)
  • " *.cs" is biggest, containing 37.53% of LOC.
  • " *.jsonc" is smallest, containing 0.86% of LOC.


*.cs2058 LOC (37%) 73 files
*.py1147 LOC (20%) 111 files
*.js658 LOC (11%) 35 files
*.csx469 LOC (8%) 40 files
*.ps1394 LOC (7%) 31 files
*.fs384 LOC (7%) 22 files
*.ts261 LOC (4%) 28 files
*.fsproj66 LOC (1%) 3 files
*.jsonc47 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3 LOC, 0.1% vs. main code). All matches are in *.json files.


*.json3 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 21 files match defined criteria (1,388 LOC, 25.3% vs. main code):
    • 16 *.nuspec files (1,302 LOC)
    • 5 *.csproj files (86 LOC)
  • " *.nuspec" is biggest, containing 93.8% of LOC.
  • " *.csproj" is smallest, containing 6.2% of LOC.


*.nuspec1302 LOC (93%) 16 files
*.csproj86 LOC (6%) 5 files
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 ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 621 files match defined criteria (19,580 LOC, 357.0% vs. main code):
    • 440 *.json files (15,418 LOC)
    • 180 *.md files (4,145 LOC)
    • 1 *.txt files (17 LOC)
  • " *.json" is biggest, containing 78.74% of LOC.
  • " *.txt" is smallest, containing 0.09% of LOC.


*.json15418 LOC (78%) 440 files
*.md4145 LOC (21%) 180 files
*.txt17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:14