azure / iot-central-bidirectional-device-bridge
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
mod
jq
txt
prettierignore
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.

main7086 LOC (52%) 94 files
test469 LOC (3%) 1 file
generated0 LOC (0%) 0 files
build and deployment109 LOC (<1%) 3 files
other5879 LOC (43%) 44 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 ".*".
  • 94 files match defined criteria (7,086 LOC, 100.0% vs. main code):
    • 88 *.cs files (5,781 LOC)
    • 5 *.ts files (668 LOC)
    • 1 *.xml files (637 LOC)
  • " *.cs" is biggest, containing 81.58% of LOC.
  • " *.xml" is smallest, containing 8.99% of LOC.


*.cs5781 LOC (81%) 88 files
*.ts668 LOC (9%) 5 files
*.xml637 LOC (8%) 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 ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
  • 1 file matches defined criteria (469 LOC, 6.6% vs. main code). All matches are in *.ts files.


*.ts469 LOC (100%) 1 file
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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (109 LOC, 1.5% vs. main code). All matches are in *.csproj files.


*.csproj109 LOC (100%) 3 files
Other Code
mod
jq
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]prettierignore".
  • 44 files match defined criteria (5,879 LOC, 83.0% vs. main code):
    • 17 *.json files (2,003 LOC)
    • 12 *.go files (1,987 LOC)
    • 6 *.ts files (1,028 LOC)
    • 6 *.md files (633 LOC)
    • 1 *.sh files (208 LOC)
    • 1 *.mod files (15 LOC)
    • 1 *.jq files (5 LOC)
  • " *.json" is biggest, containing 34.07% of LOC.
  • " *.jq" is smallest, containing 0.09% of LOC.


*.json2003 LOC (34%) 17 files
*.go1987 LOC (33%) 12 files
*.ts1028 LOC (17%) 6 files
*.md633 LOC (10%) 6 files
*.sh208 LOC (3%) 1 file
*.mod15 LOC (<1%) 1 file
*.jq5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:10