azure / AzureStack-Tools
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
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.

main47957 LOC (88%) 81 files
test77 LOC (<1%) 1 file
generated322 LOC (<1%) 1 file
build and deployment0 LOC (0%) 0 files
other5555 LOC (10%) 46 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 ".*".
  • 81 files match defined criteria (47,957 LOC, 100.0% vs. main code):
    • 45 *.xml files (31,726 LOC)
    • 18 *.psm1 files (11,363 LOC)
    • 13 *.ps1 files (4,169 LOC)
    • 5 *.psd1 files (699 LOC)
  • " *.xml" is biggest, containing 66.16% of LOC.
  • " *.psd1" is smallest, containing 1.46% of LOC.


*.xml31726 LOC (66%) 45 files
*.psm111363 LOC (23%) 18 files
*.ps14169 LOC (8%) 13 files
*.psd1699 LOC (1%) 5 files
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]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 1 file matches defined criteria (77 LOC, 0.2% vs. main code). All matches are in *.ps1 files.


*.ps177 LOC (100%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (322 LOC, 0.7% vs. main code). All matches are in *.txt files.


*.txt322 LOC (100%) 1 file
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]+".
  • 46 files match defined criteria (5,555 LOC, 11.6% vs. main code):
    • 7 *.json files (3,384 LOC)
    • 35 *.md files (1,744 LOC)
    • 4 *.txt files (427 LOC)
  • " *.json" is biggest, containing 60.92% of LOC.
  • " *.txt" is smallest, containing 7.69% of LOC.


*.json3384 LOC (60%) 7 files
*.md1744 LOC (31%) 35 files
*.txt427 LOC (7%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:16