azure / hpcpack-template
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
gitattributes
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.

main78914 LOC (53%) 374 files
test47017 LOC (31%) 322 files
generated0 LOC (0%) 0 files
build and deployment25 LOC (<1%) 2 files
other21922 LOC (14%) 242 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 ".*".
  • 374 files match defined criteria (78,914 LOC, 100.0% vs. main code):
    • 240 *.psm1 files (69,003 LOC)
    • 31 *.ps1 files (2,975 LOC)
    • 99 *.psd1 files (2,962 LOC)
    • 2 *.xml files (2,182 LOC)
    • 2 *.html files (1,792 LOC)
  • " *.psm1" is biggest, containing 87.44% of LOC.
  • " *.html" is smallest, containing 2.27% of LOC.


*.psm169003 LOC (87%) 240 files
*.ps12975 LOC (3%) 31 files
*.psd12962 LOC (3%) 99 files
*.xml2182 LOC (2%) 2 files
*.html1792 LOC (2%) 2 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[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 322 files match defined criteria (47,017 LOC, 59.6% vs. main code):
    • 309 *.ps1 files (43,570 LOC)
    • 10 *.psm1 files (3,219 LOC)
    • 2 *.cs files (216 LOC)
    • 1 *.psd1 files (12 LOC)
  • " *.ps1" is biggest, containing 92.67% of LOC.
  • " *.psd1" is smallest, containing 0.03% of LOC.


*.ps143570 LOC (92%) 309 files
*.psm13219 LOC (6%) 10 files
*.cs216 LOC (<1%) 2 files
*.psd112 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
  • 2 files match defined criteria (25 LOC, 0.0% vs. main code). All matches are in *.csproj files.


*.csproj25 LOC (100%) 2 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
  • 242 files match defined criteria (21,922 LOC, 27.8% vs. main code):
    • 48 *.md files (10,047 LOC)
    • 191 *.ps1 files (7,083 LOC)
    • 3 *.json files (4,792 LOC)
  • " *.md" is biggest, containing 45.83% of LOC.
  • " *.json" is smallest, containing 21.86% of LOC.


*.md10047 LOC (45%) 48 files
*.ps17083 LOC (32%) 191 files
*.json4792 LOC (21%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:55