azure / bicep-registry-modules
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
gitattributes
jsonc
txt
editorconfig
prettierignore
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.

main12071 LOC (2%) 92 files
test5977 LOC (1%) 51 files
generated2344 LOC (<1%) 1 file
build and deployment270 LOC (<1%) 2 files
other416792 LOC (95%) 1,200 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 92 files match defined criteria (12,071 LOC, 100.0% vs. main code):
    • 87 *.ps1 files (11,209 LOC)
    • 2 *.yaml files (364 LOC)
    • 1 *.psm1 files (325 LOC)
    • 1 *.jsonc files (89 LOC)
    • 1 *.xml files (84 LOC)
  • " *.ps1" is biggest, containing 92.86% of LOC.
  • " *.xml" is smallest, containing 0.7% of LOC.


*.ps111209 LOC (92%) 87 files
*.yaml364 LOC (3%) 2 files
*.psm1325 LOC (2%) 1 file
*.jsonc89 LOC (<1%) 1 file
*.xml84 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]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]test[-].*".
  • 51 files match defined criteria (5,977 LOC, 49.5% vs. main code):
    • 47 *.ps1 files (5,915 LOC)
    • 4 *.sh files (62 LOC)
  • " *.ps1" is biggest, containing 98.96% of LOC.
  • " *.sh" is smallest, containing 1.04% of LOC.


*.ps15915 LOC (98%) 47 files
*.sh62 LOC (1%) 4 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".
  • 1 file matches defined criteria (2,344 LOC, 19.4% vs. main code). All matches are in *.json files.


*.json2344 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (270 LOC, 2.2% vs. main code). All matches are in *.sh files.


*.sh270 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 ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
  • 1200 files match defined criteria (416,792 LOC, 3452.8% vs. main code):
    • 600 *.md files (259,773 LOC)
    • 594 *.json files (156,094 LOC)
    • 6 *.svg files (925 LOC)
  • " *.md" is biggest, containing 62.33% of LOC.
  • " *.svg" is smallest, containing 0.22% of LOC.


*.md259773 LOC (62%) 600 files
*.json156094 LOC (37%) 594 files
*.svg925 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:24