azure / bicep-extensibility
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
props
txt
targets
editorconfig
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.

main3034 LOC (17%) 96 files
test2313 LOC (13%) 64 files
generated0 LOC (0%) 0 files
build and deployment134 LOC (<1%) 9 files
other11741 LOC (68%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 96 files match defined criteria (3,034 LOC, 100.0% vs. main code):
    • 92 *.cs files (2,964 LOC)
    • 2 *.props files (33 LOC)
    • 1 *.targets files (24 LOC)
    • 1 *.ps1 files (13 LOC)
  • " *.cs" is biggest, containing 97.69% of LOC.
  • " *.ps1" is smallest, containing 0.43% of LOC.


*.cs2964 LOC (97%) 92 files
*.props33 LOC (1%) 2 files
*.targets24 LOC (<1%) 1 file
*.ps113 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 64 files match defined criteria (2,313 LOC, 76.2% vs. main code):
    • 58 *.cs files (2,176 LOC)
    • 6 *.csproj files (137 LOC)
  • " *.cs" is biggest, containing 94.08% of LOC.
  • " *.csproj" is smallest, containing 5.92% of LOC.


*.cs2176 LOC (94%) 58 files
*.csproj137 LOC (5%) 6 files
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 ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 9 files match defined criteria (134 LOC, 4.4% vs. main code):
    • 8 *.csproj files (129 LOC)
    • 1 *.sh files (5 LOC)
  • " *.csproj" is biggest, containing 96.27% of LOC.
  • " *.sh" is smallest, containing 3.73% of LOC.


*.csproj129 LOC (96%) 8 files
*.sh5 LOC (3%) 1 file
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 25 files match defined criteria (11,741 LOC, 387.0% vs. main code):
    • 20 *.json files (11,647 LOC)
    • 4 *.md files (57 LOC)
    • 1 *.txt files (37 LOC)
  • " *.json" is biggest, containing 99.2% of LOC.
  • " *.txt" is smallest, containing 0.32% of LOC.


*.json11647 LOC (99%) 20 files
*.md57 LOC (<1%) 4 files
*.txt37 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:24