azure / azure-sphere-gallery
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
in
csproj
ld
clang-format
gko
nut
vcxproj
gpb
gtl
gtp
gto
gts
gpt
gml
gbl
gbp
gbo
gbs
gitmodules
cmd
cshtml
s
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.

main59816 LOC (78%) 472 files
test2555 LOC (3%) 4 files
generated0 LOC (0%) 0 files
build and deployment305 LOC (<1%) 17 files
other13661 LOC (17%) 355 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
vcxproj
ld
cshtml
nut
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 472 files match defined criteria (59,816 LOC, 100.0% vs. main code):
    • 145 *.c files (40,281 LOC)
    • 202 *.h files (8,536 LOC)
    • 39 *.rs files (4,267 LOC)
    • 13 *.cpp files (2,319 LOC)
    • 24 *.cs files (1,795 LOC)
    • 14 *.py files (1,075 LOC)
    • 14 *.in files (564 LOC)
    • 2 *.vcxproj files (306 LOC)
    • 6 *.ld files (231 LOC)
    • 5 *.ps1 files (178 LOC)
    • 1 *.cshtml files (131 LOC)
    • 5 *.toml files (71 LOC)
    • 1 *.nut files (59 LOC)
    • 1 *.cmd files (3 LOC)
  • " *.c" is biggest, containing 67.34% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.c40281 LOC (67%) 145 files
*.h8536 LOC (14%) 202 files
*.rs4267 LOC (7%) 39 files
*.cpp2319 LOC (3%) 13 files
*.cs1795 LOC (3%) 24 files
*.py1075 LOC (1%) 14 files
*.in564 LOC (<1%) 14 files
*.vcxproj306 LOC (<1%) 2 files
*.ld231 LOC (<1%) 6 files
*.ps1178 LOC (<1%) 5 files
*.cshtml131 LOC (<1%) 1 file
*.toml71 LOC (<1%) 5 files
*.nut59 LOC (<1%) 1 file
*.cmd3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
nut
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 4 files match defined criteria (2,555 LOC, 4.3% vs. main code):
    • 1 *.nut files (2,127 LOC)
    • 2 *.c files (424 LOC)
    • 1 *.h files (4 LOC)
  • " *.nut" is biggest, containing 83.25% of LOC.
  • " *.h" is smallest, containing 0.16% of LOC.


*.nut2127 LOC (83%) 1 file
*.c424 LOC (16%) 2 files
*.h4 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 ".*[.]csproj".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 17 files match defined criteria (305 LOC, 0.5% vs. main code):
    • 10 *.csproj files (164 LOC)
    • 7 *.sh files (141 LOC)
  • " *.csproj" is biggest, containing 53.77% of LOC.
  • " *.sh" is smallest, containing 46.23% of LOC.


*.csproj164 LOC (53%) 10 files
*.sh141 LOC (46%) 7 files
Other Code
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 355 files match defined criteria (13,661 LOC, 22.8% vs. main code):
    • 93 *.md files (5,624 LOC)
    • 156 *.json files (4,327 LOC)
    • 92 *.txt files (2,115 LOC)
    • 7 *.rs files (1,511 LOC)
    • 7 *.toml files (84 LOC)
  • " *.md" is biggest, containing 41.17% of LOC.
  • " *.toml" is smallest, containing 0.61% of LOC.


*.md5624 LOC (41%) 93 files
*.json4327 LOC (31%) 156 files
*.txt2115 LOC (15%) 92 files
*.rs1511 LOC (11%) 7 files
*.toml84 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:09