azure / iot-hub-device-update-delta
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
csproj
props
patch
nuspec
gitattributes
editorconfig
clang-format
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.

main19434 LOC (47%) 312 files
test4379 LOC (10%) 63 files
generated0 LOC (0%) 0 files
build and deployment760 LOC (1%) 31 files
other16309 LOC (39%) 86 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 312 files match defined criteria (19,434 LOC, 100.0% vs. main code):
    • 95 *.cpp files (8,449 LOC)
    • 68 *.cs files (6,126 LOC)
    • 118 *.h files (3,613 LOC)
    • 14 *.ps1 files (597 LOC)
    • 5 *.py files (368 LOC)
    • 8 *.cmake files (186 LOC)
    • 4 *.props files (95 LOC)
  • " *.cpp" is biggest, containing 43.48% of LOC.
  • " *.props" is smallest, containing 0.49% of LOC.


*.cpp8449 LOC (43%) 95 files
*.cs6126 LOC (31%) 68 files
*.h3613 LOC (18%) 118 files
*.ps1597 LOC (3%) 14 files
*.py368 LOC (1%) 5 files
*.cmake186 LOC (<1%) 8 files
*.props95 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/UnitTests?/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 63 files match defined criteria (4,379 LOC, 22.5% vs. main code):
    • 37 *.cpp files (3,153 LOC)
    • 10 *.cs files (571 LOC)
    • 2 *.py files (241 LOC)
    • 3 *.sh files (128 LOC)
    • 3 *.csproj files (128 LOC)
    • 3 *.ps1 files (105 LOC)
    • 5 *.h files (53 LOC)
  • " *.cpp" is biggest, containing 72% of LOC.
  • " *.h" is smallest, containing 1.21% of LOC.


*.cpp3153 LOC (72%) 37 files
*.cs571 LOC (13%) 10 files
*.py241 LOC (5%) 2 files
*.sh128 LOC (2%) 3 files
*.csproj128 LOC (2%) 3 files
*.ps1105 LOC (2%) 3 files
*.h53 LOC (1%) 5 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
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 ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*/[.]gitattributes".
  • 31 files match defined criteria (760 LOC, 3.9% vs. main code):
    • 20 *.sh files (540 LOC)
    • 9 *.csproj files (166 LOC)
    • 2 *.nuspec files (54 LOC)
  • " *.sh" is biggest, containing 71.05% of LOC.
  • " *.nuspec" is smallest, containing 7.11% of LOC.


*.sh540 LOC (71%) 20 files
*.csproj166 LOC (21%) 9 files
*.nuspec54 LOC (7%) 2 files
Other Code
patch
txt
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]patch".
  • 86 files match defined criteria (16,309 LOC, 83.9% vs. main code):
    • 23 *.json files (9,765 LOC)
    • 3 *.patch files (3,080 LOC)
    • 49 *.txt files (2,735 LOC)
    • 5 *.md files (342 LOC)
    • 3 *.cs files (285 LOC)
    • 3 *.csproj files (102 LOC)
  • " *.json" is biggest, containing 59.87% of LOC.
  • " *.csproj" is smallest, containing 0.63% of LOC.


*.json9765 LOC (59%) 23 files
*.patch3080 LOC (18%) 3 files
*.txt2735 LOC (16%) 49 files
*.md342 LOC (2%) 5 files
*.cs285 LOC (1%) 3 files
*.csproj102 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:29