azure / Enterprise-Scale-for-AVS
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
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.

main16517 LOC (44%) 332 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment77 LOC (<1%) 6 files
other20136 LOC (54%) 187 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 ".*".
  • 332 files match defined criteria (16,517 LOC, 100.0% vs. main code):
    • 214 *.tf files (8,524 LOC)
    • 108 *.ps1 files (7,721 LOC)
    • 3 *.yaml files (143 LOC)
    • 7 *.tfvars files (129 LOC)
  • " *.tf" is biggest, containing 51.61% of LOC.
  • " *.tfvars" is smallest, containing 0.78% of LOC.


*.tf8524 LOC (51%) 214 files
*.ps17721 LOC (46%) 108 files
*.yaml143 LOC (<1%) 3 files
*.tfvars129 LOC (<1%) 7 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 6 files match defined criteria (77 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh77 LOC (100%) 6 files
Other Code
txt
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 ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
  • 187 files match defined criteria (20,136 LOC, 121.9% vs. main code):
    • 61 *.json files (10,818 LOC)
    • 114 *.md files (4,589 LOC)
    • 1 *.svg files (3,686 LOC)
    • 7 *.tf files (716 LOC)
    • 3 *.txt files (230 LOC)
    • 1 *.tfvars files (97 LOC)
  • " *.json" is biggest, containing 53.72% of LOC.
  • " *.tfvars" is smallest, containing 0.48% of LOC.


*.json10818 LOC (53%) 61 files
*.md4589 LOC (22%) 114 files
*.svg3686 LOC (18%) 1 file
*.tf716 LOC (3%) 7 files
*.txt230 LOC (1%) 3 files
*.tfvars97 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:16