azure / bicep-types
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
props
csproj
targets
txt
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.

main1428 LOC (6%) 36 files
test443 LOC (2%) 6 files
generated8905 LOC (43%) 1 file
build and deployment13 LOC (<1%) 1 file
other9709 LOC (47%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
targets
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 36 files match defined criteria (1,428 LOC, 100.0% vs. main code):
    • 6 *.ts files (762 LOC)
    • 27 *.cs files (611 LOC)
    • 1 *.targets files (30 LOC)
    • 2 *.props files (25 LOC)
  • " *.ts" is biggest, containing 53.36% of LOC.
  • " *.props" is smallest, containing 1.75% of LOC.


*.ts762 LOC (53%) 6 files
*.cs611 LOC (42%) 27 files
*.targets30 LOC (2%) 1 file
*.props25 LOC (1%) 2 files
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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
  • 6 files match defined criteria (443 LOC, 31.0% vs. main code):
    • 3 *.cs files (272 LOC)
    • 2 *.ts files (147 LOC)
    • 1 *.csproj files (24 LOC)
  • " *.cs" is biggest, containing 61.4% of LOC.
  • " *.csproj" is smallest, containing 5.42% of LOC.


*.cs272 LOC (61%) 3 files
*.ts147 LOC (33%) 2 files
*.csproj24 LOC (5%) 1 file
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 (8,905 LOC, 623.6% vs. main code). All matches are in *.json files.


*.json8905 LOC (100%) 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 ".*/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 ".*[.]csproj".
  • 1 file matches defined criteria (13 LOC, 0.9% vs. main code). All matches are in *.csproj files.


*.csproj13 LOC (100%) 1 file
Other Code
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 ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
  • 22 files match defined criteria (9,709 LOC, 679.9% vs. main code):
    • 12 *.json files (9,588 LOC)
    • 10 *.md files (121 LOC)
  • " *.json" is biggest, containing 98.75% of LOC.
  • " *.md" is smallest, containing 1.25% of LOC.


*.json9588 LOC (98%) 12 files
*.md121 LOC (1%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:35