azure / arm-ttk
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
jsonc
cmd
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.

main3733 LOC (18%) 30 files
test4019 LOC (20%) 118 files
generated0 LOC (0%) 0 files
build and deployment6 LOC (<1%) 1 file
other11924 LOC (60%) 479 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 30 files match defined criteria (3,733 LOC, 100.0% vs. main code):
    • 20 *.ps1 files (3,208 LOC)
    • 1 *.ps1xml files (416 LOC)
    • 7 *.psd1 files (58 LOC)
    • 1 *.psm1 files (50 LOC)
    • 1 *.cmd files (1 LOC)
  • " *.ps1" is biggest, containing 85.94% of LOC.
  • " *.cmd" is smallest, containing 0.03% of LOC.


*.ps13208 LOC (85%) 20 files
*.ps1xml416 LOC (11%) 1 file
*.psd158 LOC (1%) 7 files
*.psm150 LOC (1%) 1 file
*.cmd1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 118 files match defined criteria (4,019 LOC, 107.7% vs. main code):
    • 116 *.ps1 files (3,990 LOC)
    • 1 *.sh files (25 LOC)
    • 1 *.jsonc files (4 LOC)
  • " *.ps1" is biggest, containing 99.28% of LOC.
  • " *.jsonc" is smallest, containing 0.1% of LOC.


*.ps13990 LOC (99%) 116 files
*.sh25 LOC (<1%) 1 file
*.jsonc4 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*[.]sh".
  • 1 file matches defined criteria (6 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh6 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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 479 files match defined criteria (11,924 LOC, 319.4% vs. main code):
    • 398 *.json files (11,511 LOC)
    • 15 *.md files (293 LOC)
    • 66 *.txt files (120 LOC)
  • " *.json" is biggest, containing 96.54% of LOC.
  • " *.txt" is smallest, containing 1.01% of LOC.


*.json11511 LOC (96%) 398 files
*.md293 LOC (2%) 15 files
*.txt120 LOC (1%) 66 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:56