azure / Industrial-IoT
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
xsd
cmd
props
jsonld
gitattributes
editorconfig
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.

main170872 LOC (48%) 1,022 files
test97969 LOC (28%) 564 files
generated0 LOC (0%) 0 files
build and deployment726 LOC (<1%) 19 files
other79545 LOC (22%) 328 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
cmd
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1022 files match defined criteria (170,872 LOC, 100.0% vs. main code):
    • 914 *.cs files (122,021 LOC)
    • 43 *.xml files (41,654 LOC)
    • 29 *.ps1 files (5,679 LOC)
    • 12 *.xsd files (701 LOC)
    • 8 *.cmd files (424 LOC)
    • 14 *.yaml files (336 LOC)
    • 2 *.props files (57 LOC)
  • " *.cs" is biggest, containing 71.41% of LOC.
  • " *.props" is smallest, containing 0.03% of LOC.


*.cs122021 LOC (71%) 914 files
*.xml41654 LOC (24%) 43 files
*.ps15679 LOC (3%) 29 files
*.xsd701 LOC (<1%) 12 files
*.cmd424 LOC (<1%) 8 files
*.yaml336 LOC (<1%) 14 files
*.props57 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
xsd
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/TestData/.*".
    • files with paths like ".*[-]tests/.*".
  • 564 files match defined criteria (97,969 LOC, 57.3% vs. main code):
    • 552 *.cs files (96,684 LOC)
    • 1 *.xml files (735 LOC)
    • 9 *.csproj files (319 LOC)
    • 1 *.xsd files (228 LOC)
    • 1 *.props files (3 LOC)
  • " *.cs" is biggest, containing 98.69% of LOC.
  • " *.props" is smallest, containing 0% of LOC.


*.cs96684 LOC (98%) 552 files
*.xml735 LOC (<1%) 1 file
*.csproj319 LOC (<1%) 9 files
*.xsd228 LOC (<1%) 1 file
*.props3 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/[.]gitattributes".
  • 19 files match defined criteria (726 LOC, 0.4% vs. main code):
    • 12 *.csproj files (361 LOC)
    • 4 *.sh files (247 LOC)
    • 2 *.bat files (63 LOC)
    • 1 *.yaml files (55 LOC)
  • " *.csproj" is biggest, containing 49.72% of LOC.
  • " *.yaml" is smallest, containing 7.58% of LOC.


*.csproj361 LOC (49%) 12 files
*.sh247 LOC (34%) 4 files
*.bat63 LOC (8%) 2 files
*.yaml55 LOC (7%) 1 file
Other Code
csproj
txt
jsonld
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]editorconfig".
  • 328 files match defined criteria (79,545 LOC, 46.6% vs. main code):
    • 234 *.json files (74,427 LOC)
    • 30 *.cs files (3,706 LOC)
    • 11 *.md files (475 LOC)
    • 22 *.csproj files (324 LOC)
    • 28 *.txt files (319 LOC)
    • 1 *.jsonld files (287 LOC)
    • 1 *.sh files (4 LOC)
    • 1 *.props files (3 LOC)
  • " *.json" is biggest, containing 93.57% of LOC.
  • " *.props" is smallest, containing 0% of LOC.


*.json74427 LOC (93%) 234 files
*.cs3706 LOC (4%) 30 files
*.md475 LOC (<1%) 11 files
*.csproj324 LOC (<1%) 22 files
*.txt319 LOC (<1%) 28 files
*.jsonld287 LOC (<1%) 1 file
*.sh4 LOC (<1%) 1 file
*.props3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:43