azure / azure-quickstart-templates
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
gitattributes
csx
cmd
xsd
pkl
ini
properties
csproj
xsl
xslt
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.

main30752 LOC (4%) 293 files
test5000 LOC (<1%) 63 files
generated388 LOC (<1%) 1 file
build and deployment26288 LOC (3%) 286 files
other603149 LOC (90%) 5,992 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
csx
xsd
xslt
pkl
xsl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 293 files match defined criteria (30,752 LOC, 100.0% vs. main code):
    • 211 *.ps1 files (22,694 LOC)
    • 12 *.psm1 files (4,345 LOC)
    • 12 *.yaml files (1,040 LOC)
    • 9 *.py files (514 LOC)
    • 7 *.js files (420 LOC)
    • 14 *.xml files (389 LOC)
    • 2 *.css files (327 LOC)
    • 4 *.tf files (224 LOC)
    • 3 *.csx files (167 LOC)
    • 2 *.html files (126 LOC)
    • 2 *.java files (115 LOC)
    • 2 *.psd1 files (101 LOC)
    • 2 *.xsd files (65 LOC)
    • 2 *.jsp files (58 LOC)
    • 1 *.xslt files (41 LOC)
    • 2 *.pkl files (38 LOC)
    • 2 *.htm files (28 LOC)
    • 1 *.xsl files (26 LOC)
    • 1 *.hql files (20 LOC)
    • 1 *.cmd files (11 LOC)
    • 1 *.sql files (3 LOC)
  • " *.ps1" is biggest, containing 73.8% of LOC.
  • " *.sql" is smallest, containing 0.01% of LOC.


*.ps122694 LOC (73%) 211 files
*.psm14345 LOC (14%) 12 files
*.yaml1040 LOC (3%) 12 files
*.py514 LOC (1%) 9 files
*.js420 LOC (1%) 7 files
*.xml389 LOC (1%) 14 files
*.css327 LOC (1%) 2 files
*.tf224 LOC (<1%) 4 files
*.csx167 LOC (<1%) 3 files
*.html126 LOC (<1%) 2 files
*.java115 LOC (<1%) 2 files
*.psd1101 LOC (<1%) 2 files
*.xsd65 LOC (<1%) 2 files
*.jsp58 LOC (<1%) 2 files
*.xslt41 LOC (<1%) 1 file
*.pkl38 LOC (<1%) 2 files
*.htm28 LOC (<1%) 2 files
*.xsl26 LOC (<1%) 1 file
*.hql20 LOC (<1%) 1 file
*.cmd11 LOC (<1%) 1 file
*.sql3 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 ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 63 files match defined criteria (5,000 LOC, 16.3% vs. main code):
    • 60 *.ps1 files (4,857 LOC)
    • 1 *.psm1 files (128 LOC)
    • 2 *.sh files (15 LOC)
  • " *.ps1" is biggest, containing 97.14% of LOC.
  • " *.sh" is smallest, containing 0.3% of LOC.


*.ps14857 LOC (97%) 60 files
*.psm1128 LOC (2%) 1 file
*.sh15 LOC (<1%) 2 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 (388 LOC, 1.3% vs. main code). All matches are in *.json files.


*.json388 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
  • 286 files match defined criteria (26,288 LOC, 85.5% vs. main code):
    • 279 *.sh files (26,168 LOC)
    • 2 *.xml files (49 LOC)
    • 2 *.groovy files (36 LOC)
    • 2 *.bat files (24 LOC)
    • 1 *.csproj files (11 LOC)
  • " *.sh" is biggest, containing 99.54% of LOC.
  • " *.csproj" is smallest, containing 0.04% of LOC.


*.sh26168 LOC (99%) 279 files
*.xml49 LOC (<1%) 2 files
*.groovy36 LOC (<1%) 2 files
*.bat24 LOC (<1%) 2 files
*.csproj11 LOC (<1%) 1 file
Other Code
ini
txt
properties
cmd
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
  • 5992 files match defined criteria (603,149 LOC, 1961.3% vs. main code):
    • 4,602 *.json files (533,436 LOC)
    • 1,235 *.md files (48,504 LOC)
    • 85 *.ps1 files (16,403 LOC)
    • 48 *.sh files (3,980 LOC)
    • 2 *.ini files (264 LOC)
    • 13 *.txt files (248 LOC)
    • 2 *.svg files (231 LOC)
    • 2 *.properties files (58 LOC)
    • 1 *.php files (22 LOC)
    • 2 *.cmd files (3 LOC)
  • " *.json" is biggest, containing 88.44% of LOC.
  • " *.cmd" is smallest, containing 0% of LOC.


*.json533436 LOC (88%) 4,602 files
*.md48504 LOC (8%) 1,235 files
*.ps116403 LOC (2%) 85 files
*.sh3980 LOC (<1%) 48 files
*.ini264 LOC (<1%) 2 files
*.txt248 LOC (<1%) 13 files
*.svg231 LOC (<1%) 2 files
*.properties58 LOC (<1%) 2 files
*.php22 LOC (<1%) 1 file
*.cmd3 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:13