azure / azure-iot-sdk-node
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
eslintignore
npmignore
txt
gitattributes
jshintrc
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.

main12890 LOC (24%) 119 files
test27845 LOC (53%) 120 files
generated0 LOC (0%) 0 files
build and deployment182 LOC (<1%) 2 files
other11006 LOC (21%) 213 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 ".*".
  • 119 files match defined criteria (12,890 LOC, 100.0% vs. main code):
    • 89 *.ts files (11,731 LOC)
    • 24 *.js files (721 LOC)
    • 5 *.yaml files (381 LOC)
    • 1 *.html files (57 LOC)
  • " *.ts" is biggest, containing 91.01% of LOC.
  • " *.html" is smallest, containing 0.44% of LOC.


*.ts11731 LOC (91%) 89 files
*.js721 LOC (5%) 24 files
*.yaml381 LOC (2%) 5 files
*.html57 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/e2e/.*".
  • 120 files match defined criteria (27,845 LOC, 216.0% vs. main code):
    • 113 *.js files (27,274 LOC)
    • 7 *.ts files (571 LOC)
  • " *.js" is biggest, containing 97.95% of LOC.
  • " *.ts" is smallest, containing 2.05% of LOC.


*.js27274 LOC (97%) 113 files
*.ts571 LOC (2%) 7 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (182 LOC, 1.4% vs. main code). All matches are in *.sh files.


*.sh182 LOC (100%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
  • 213 files match defined criteria (11,006 LOC, 85.4% vs. main code):
    • 98 *.md files (4,629 LOC)
    • 62 *.json files (2,532 LOC)
    • 33 *.js files (2,109 LOC)
    • 15 *.ts files (1,550 LOC)
    • 4 *.svg files (94 LOC)
    • 1 *.txt files (92 LOC)
  • " *.md" is biggest, containing 42.06% of LOC.
  • " *.txt" is smallest, containing 0.84% of LOC.


*.md4629 LOC (42%) 98 files
*.json2532 LOC (23%) 62 files
*.js2109 LOC (19%) 33 files
*.ts1550 LOC (14%) 15 files
*.svg94 LOC (<1%) 4 files
*.txt92 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:17