azure / azure-functions-python-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
proto
txt
ini
in
cfg
targets
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.

main5838 LOC (22%) 69 files
test15753 LOC (61%) 354 files
generated0 LOC (0%) 0 files
build and deployment114 LOC (<1%) 7 files
other3949 LOC (15%) 214 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
targets
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 69 files match defined criteria (5,838 LOC, 100.0% vs. main code):
    • 58 *.py files (4,410 LOC)
    • 6 *.proto files (1,224 LOC)
    • 1 *.toml files (125 LOC)
    • 1 *.targets files (32 LOC)
    • 1 *.ps1 files (23 LOC)
    • 1 *.cfg files (21 LOC)
    • 1 *.in files (3 LOC)
  • " *.py" is biggest, containing 75.54% of LOC.
  • " *.in" is smallest, containing 0.05% of LOC.


*.py4410 LOC (75%) 58 files
*.proto1224 LOC (20%) 6 files
*.toml125 LOC (2%) 1 file
*.targets32 LOC (<1%) 1 file
*.ps123 LOC (<1%) 1 file
*.cfg21 LOC (<1%) 1 file
*.in3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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 ".*/test_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test[.].*".
  • 354 files match defined criteria (15,753 LOC, 269.8% vs. main code):
    • 352 *.py files (15,745 LOC)
    • 2 *.sh files (8 LOC)
  • " *.py" is biggest, containing 99.95% of LOC.
  • " *.sh" is smallest, containing 0.05% of LOC.


*.py15745 LOC (99%) 352 files
*.sh8 LOC (<1%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]nuspec".
  • 7 files match defined criteria (114 LOC, 2.0% vs. main code):
    • 6 *.sh files (64 LOC)
    • 1 *.nuspec files (50 LOC)
  • " *.sh" is biggest, containing 56.14% of LOC.
  • " *.nuspec" is smallest, containing 43.86% of LOC.


*.sh64 LOC (56%) 6 files
*.nuspec50 LOC (43%) 1 file
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/site[-]packages/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
  • 214 files match defined criteria (3,949 LOC, 67.6% vs. main code):
    • 203 *.json files (3,691 LOC)
    • 8 *.md files (250 LOC)
    • 1 *.ini files (5 LOC)
    • 2 *.txt files (3 LOC)
  • " *.json" is biggest, containing 93.47% of LOC.
  • " *.txt" is smallest, containing 0.08% of LOC.


*.json3691 LOC (93%) 203 files
*.md250 LOC (6%) 8 files
*.ini5 LOC (<1%) 1 file
*.txt3 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:28