azure / azure-iot-ops-cli-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
txt
pyi
ini
cfg
gitattributes
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.

main19977 LOC (43%) 120 files
test25447 LOC (55%) 124 files
generated0 LOC (0%) 0 files
build and deployment69 LOC (<1%) 1 file
other483 LOC (1%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 120 files match defined criteria (19,977 LOC, 100.0% vs. main code):
    • 118 *.py files (19,924 LOC)
    • 1 *.pyi files (35 LOC)
    • 1 *.cfg files (18 LOC)
  • " *.py" is biggest, containing 99.73% of LOC.
  • " *.cfg" is smallest, containing 0.09% of LOC.


*.py19924 LOC (99%) 118 files
*.pyi35 LOC (<1%) 1 file
*.cfg18 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]ests/.*".
    • files with paths like ".*/test_.*".
  • 124 files match defined criteria (25,447 LOC, 127.4% vs. main code). All matches are in *.py files.


*.py25447 LOC (100%) 124 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (69 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh69 LOC (100%) 1 file
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[.]dockerignore".
  • 10 files match defined criteria (483 LOC, 2.4% vs. main code):
    • 5 *.md files (346 LOC)
    • 1 *.ini files (109 LOC)
    • 1 *.txt files (14 LOC)
    • 1 *.rst files (7 LOC)
    • 2 *.json files (7 LOC)
  • " *.md" is biggest, containing 71.64% of LOC.
  • " *.json" is smallest, containing 1.45% of LOC.


*.md346 LOC (71%) 5 files
*.ini109 LOC (22%) 1 file
*.txt14 LOC (2%) 1 file
*.rst7 LOC (1%) 1 file
*.json7 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:54