azure / Azure-Network-Security
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
csproj
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.

main7819 LOC (16%) 76 files
test0 LOC (0%) 0 files
generated2387 LOC (5%) 1 file
build and deployment173 LOC (<1%) 3 files
other37150 LOC (78%) 284 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 76 files match defined criteria (7,819 LOC, 100.0% vs. main code):
    • 37 *.tf files (2,614 LOC)
    • 14 *.ps1 files (2,356 LOC)
    • 6 *.py files (1,867 LOC)
    • 3 *.cs files (374 LOC)
    • 9 *.php files (322 LOC)
    • 3 *.sql files (170 LOC)
    • 1 *.psd1 files (88 LOC)
    • 1 *.yaml files (14 LOC)
    • 1 *.tfvars files (10 LOC)
    • 1 *.psm1 files (4 LOC)
  • " *.tf" is biggest, containing 33.43% of LOC.
  • " *.psm1" is smallest, containing 0.05% of LOC.


*.tf2614 LOC (33%) 37 files
*.ps12356 LOC (30%) 14 files
*.py1867 LOC (23%) 6 files
*.cs374 LOC (4%) 3 files
*.php322 LOC (4%) 9 files
*.sql170 LOC (2%) 3 files
*.psd188 LOC (1%) 1 file
*.yaml14 LOC (<1%) 1 file
*.tfvars10 LOC (<1%) 1 file
*.psm14 LOC (<1%) 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 (2,387 LOC, 30.5% vs. main code). All matches are in *.json files.


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


*.sh173 LOC (100%) 3 files
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 284 files match defined criteria (37,150 LOC, 475.1% vs. main code):
    • 140 *.json files (33,863 LOC)
    • 134 *.md files (3,025 LOC)
    • 2 *.txt files (158 LOC)
    • 8 *.tf files (104 LOC)
  • " *.json" is biggest, containing 91.15% of LOC.
  • " *.tf" is smallest, containing 0.28% of LOC.


*.json33863 LOC (91%) 140 files
*.md3025 LOC (8%) 134 files
*.txt158 LOC (<1%) 2 files
*.tf104 LOC (<1%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:53