azure / azure-powershell-migration
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
proj
txt
vscodeignore
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.

main4879 LOC (1%) 87 files
test1742 LOC (<1%) 18 files
generated2817 LOC (<1%) 2 files
build and deployment0 LOC (0%) 0 files
other317804 LOC (97%) 153 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 87 files match defined criteria (4,879 LOC, 100.0% vs. main code):
    • 72 *.ps1 files (3,575 LOC)
    • 8 *.ts files (923 LOC)
    • 1 *.ps1xml files (158 LOC)
    • 2 *.psd1 files (140 LOC)
    • 3 *.proj files (59 LOC)
    • 1 *.psm1 files (24 LOC)
  • " *.ps1" is biggest, containing 73.27% of LOC.
  • " *.psm1" is smallest, containing 0.49% of LOC.


*.ps13575 LOC (73%) 72 files
*.ts923 LOC (18%) 8 files
*.ps1xml158 LOC (3%) 1 file
*.psd1140 LOC (2%) 2 files
*.proj59 LOC (1%) 3 files
*.psm124 LOC (<1%) 1 file
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]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 18 files match defined criteria (1,742 LOC, 35.7% vs. main code):
    • 15 *.ps1 files (1,690 LOC)
    • 3 *.ts files (52 LOC)
  • " *.ps1" is biggest, containing 97.01% of LOC.
  • " *.ts" is smallest, containing 2.99% of LOC.


*.ps11690 LOC (97%) 15 files
*.ts52 LOC (2%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (2,817 LOC, 57.7% vs. main code). All matches are in *.json files.


*.json2817 LOC (100%) 2 files
Other Code
txt
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 ".*/[.]vscodeignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 153 files match defined criteria (317,804 LOC, 6513.7% vs. main code):
    • 137 *.json files (316,973 LOC)
    • 15 *.md files (814 LOC)
    • 1 *.txt files (17 LOC)
  • " *.json" is biggest, containing 99.74% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.json316973 LOC (99%) 137 files
*.md814 LOC (<1%) 15 files
*.txt17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:05