azure / azure-sphere-samples
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
ld
xaml
clang-format
csproj
project
cproject
s
gitmodules
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.

main2308 LOC (2%) 34 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other85570 LOC (97%) 679 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 ".*".
  • 34 files match defined criteria (2,308 LOC, 100.0% vs. main code):
    • 21 *.c files (2,121 LOC)
    • 13 *.h files (187 LOC)
  • " *.c" is biggest, containing 91.9% of LOC.
  • " *.h" is smallest, containing 8.1% of LOC.


*.c2121 LOC (91%) 21 files
*.h187 LOC (8%) 13 files
Other Code
txt
ld
csproj
s
xaml
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 679 files match defined criteria (85,570 LOC, 3707.5% vs. main code):
    • 148 *.c files (43,715 LOC)
    • 173 *.h files (29,423 LOC)
    • 95 *.md files (4,680 LOC)
    • 123 *.json files (2,622 LOC)
    • 88 *.txt files (1,915 LOC)
    • 28 *.cs files (1,447 LOC)
    • 7 *.ld files (726 LOC)
    • 2 *.csproj files (305 LOC)
    • 6 *.xml files (230 LOC)
    • 1 *.s files (226 LOC)
    • 4 *.xaml files (158 LOC)
    • 3 *.psm1 files (81 LOC)
    • 1 *.ps1 files (42 LOC)
  • " *.c" is biggest, containing 51.09% of LOC.
  • " *.ps1" is smallest, containing 0.05% of LOC.


*.c43715 LOC (51%) 148 files
*.h29423 LOC (34%) 173 files
*.md4680 LOC (5%) 95 files
*.json2622 LOC (3%) 123 files
*.txt1915 LOC (2%) 88 files
*.cs1447 LOC (1%) 28 files
*.ld726 LOC (<1%) 7 files
*.csproj305 LOC (<1%) 2 files
*.xml230 LOC (<1%) 6 files
*.s226 LOC (<1%) 1 file
*.xaml158 LOC (<1%) 4 files
*.psm181 LOC (<1%) 3 files
*.ps142 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:35