azure / iot-sdks-e2e-fx
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
cmd
gitattributes
jshintrc
ini
csproj
properties
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.

main19725 LOC (58%) 215 files
test1491 LOC (4%) 17 files
generated5649 LOC (16%) 33 files
build and deployment746 LOC (2%) 32 files
other6297 LOC (18%) 35 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 215 files match defined criteria (19,725 LOC, 100.0% vs. main code):
    • 83 *.py files (5,014 LOC)
    • 22 *.yaml files (4,553 LOC)
    • 38 *.java files (3,969 LOC)
    • 29 *.cs files (2,728 LOC)
    • 21 *.js files (2,206 LOC)
    • 7 *.cpp files (913 LOC)
    • 8 *.h files (207 LOC)
    • 5 *.cmd files (128 LOC)
    • 1 *.xml files (6 LOC)
    • 1 *.html files (1 LOC)
  • " *.py" is biggest, containing 25.42% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.py5014 LOC (25%) 83 files
*.yaml4553 LOC (23%) 22 files
*.java3969 LOC (20%) 38 files
*.cs2728 LOC (13%) 29 files
*.js2206 LOC (11%) 21 files
*.cpp913 LOC (4%) 7 files
*.h207 LOC (1%) 8 files
*.cmd128 LOC (<1%) 5 files
*.xml6 LOC (<1%) 1 file
*.html1 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 ".*/e2e/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]test[-].*".
  • 17 files match defined criteria (1,491 LOC, 7.6% vs. main code):
    • 15 *.py files (1,445 LOC)
    • 1 *.sh files (29 LOC)
    • 1 *.java files (17 LOC)
  • " *.py" is biggest, containing 96.91% of LOC.
  • " *.java" is smallest, containing 1.14% of LOC.


*.py1445 LOC (96%) 15 files
*.sh29 LOC (1%) 1 file
*.java17 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 ".*/generated/.*".
  • 33 files match defined criteria (5,649 LOC, 28.6% vs. main code):
    • 23 *.py files (3,450 LOC)
    • 5 *.cpp files (1,660 LOC)
    • 5 *.h files (539 LOC)
  • " *.py" is biggest, containing 61.07% of LOC.
  • " *.h" is smallest, containing 9.54% of LOC.


*.py3450 LOC (61%) 23 files
*.cpp1660 LOC (29%) 5 files
*.h539 LOC (9%) 5 files
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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 32 files match defined criteria (746 LOC, 3.8% vs. main code):
    • 30 *.sh files (604 LOC)
    • 1 *.xml files (109 LOC)
    • 1 *.csproj files (33 LOC)
  • " *.sh" is biggest, containing 80.97% of LOC.
  • " *.csproj" is smallest, containing 4.42% of LOC.


*.sh604 LOC (80%) 30 files
*.xml109 LOC (14%) 1 file
*.csproj33 LOC (4%) 1 file
Other Code
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]ini".
  • 35 files match defined criteria (6,297 LOC, 31.9% vs. main code):
    • 21 *.json files (6,043 LOC)
    • 6 *.txt files (120 LOC)
    • 6 *.md files (90 LOC)
    • 1 *.properties files (28 LOC)
    • 1 *.ini files (16 LOC)
  • " *.json" is biggest, containing 95.97% of LOC.
  • " *.ini" is smallest, containing 0.25% of LOC.


*.json6043 LOC (95%) 21 files
*.txt120 LOC (1%) 6 files
*.md90 LOC (1%) 6 files
*.properties28 LOC (<1%) 1 file
*.ini16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:41