azure / iotedge-eflow
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
csproj
txt
vcxproj
filters
xaml
pb
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.

main1718 LOC (13%) 13 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other11318 LOC (86%) 120 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 13 files match defined criteria (1,718 LOC, 100.0% vs. main code):
    • 10 *.ps1 files (1,675 LOC)
    • 3 *.psm1 files (43 LOC)
  • " *.ps1" is biggest, containing 97.5% of LOC.
  • " *.psm1" is smallest, containing 2.5% of LOC.


*.ps11675 LOC (97%) 10 files
*.psm143 LOC (2%) 3 files
Other Code
vcxproj
csproj
xaml
filters
txt
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 ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 120 files match defined criteria (11,318 LOC, 658.8% vs. main code):
    • 3 *.xml files (2,375 LOC)
    • 8 *.cpp files (2,279 LOC)
    • 21 *.cs files (1,868 LOC)
    • 20 *.json files (1,271 LOC)
    • 4 *.vcxproj files (782 LOC)
    • 16 *.md files (729 LOC)
    • 11 *.py files (691 LOC)
    • 8 *.csproj files (477 LOC)
    • 11 *.h files (455 LOC)
    • 4 *.xaml files (131 LOC)
    • 4 *.filters files (127 LOC)
    • 6 *.txt files (79 LOC)
    • 1 *.ps1 files (27 LOC)
    • 2 *.sh files (18 LOC)
    • 1 *.bat files (9 LOC)
  • " *.xml" is biggest, containing 20.98% of LOC.
  • " *.bat" is smallest, containing 0.08% of LOC.


*.xml2375 LOC (20%) 3 files
*.cpp2279 LOC (20%) 8 files
*.cs1868 LOC (16%) 21 files
*.json1271 LOC (11%) 20 files
*.vcxproj782 LOC (6%) 4 files
*.md729 LOC (6%) 16 files
*.py691 LOC (6%) 11 files
*.csproj477 LOC (4%) 8 files
*.h455 LOC (4%) 11 files
*.xaml131 LOC (1%) 4 files
*.filters127 LOC (1%) 4 files
*.txt79 LOC (<1%) 6 files
*.ps127 LOC (<1%) 1 file
*.sh18 LOC (<1%) 2 files
*.bat9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:12