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

main50946 LOC (57%) 472 files
test31685 LOC (35%) 98 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other6550 LOC (7%) 80 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 472 files match defined criteria (50,946 LOC, 100.0% vs. main code):
    • 471 *.py files (50,930 LOC)
    • 1 *.cfg files (16 LOC)
  • " *.py" is biggest, containing 99.97% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.py50930 LOC (99%) 471 files
*.cfg16 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 98 files match defined criteria (31,685 LOC, 62.2% vs. main code):
    • 92 *.py files (31,378 LOC)
    • 1 *.ps1 files (245 LOC)
    • 1 *.toml files (34 LOC)
    • 1 *.yaml files (17 LOC)
    • 3 *.sh files (11 LOC)
  • " *.py" is biggest, containing 99.03% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.py31378 LOC (99%) 92 files
*.ps1245 LOC (<1%) 1 file
*.toml34 LOC (<1%) 1 file
*.yaml17 LOC (<1%) 1 file
*.sh11 LOC (<1%) 3 files
Other Code
ini
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
  • 80 files match defined criteria (6,550 LOC, 12.9% vs. main code):
    • 74 *.json files (4,846 LOC)
    • 1 *.rst files (997 LOC)
    • 4 *.md files (560 LOC)
    • 1 *.ini files (147 LOC)
  • " *.json" is biggest, containing 73.98% of LOC.
  • " *.ini" is smallest, containing 2.24% of LOC.


*.json4846 LOC (73%) 74 files
*.rst997 LOC (15%) 1 file
*.md560 LOC (8%) 4 files
*.ini147 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:26