azure / azure-search-vector-samples
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
properties
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.

main17185 LOC (75%) 61 files
test0 LOC (0%) 0 files
generated605 LOC (2%) 2 files
build and deployment185 LOC (<1%) 5 files
other4807 LOC (21%) 63 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 ".*".
  • 61 files match defined criteria (17,185 LOC, 100.0% vs. main code):
    • 20 *.ipynb files (13,203 LOC)
    • 16 *.py files (2,124 LOC)
    • 6 *.cs files (870 LOC)
    • 2 *.java files (529 LOC)
    • 1 *.js files (258 LOC)
    • 10 *.ps1 files (126 LOC)
    • 6 *.yaml files (75 LOC)
  • " *.ipynb" is biggest, containing 76.83% of LOC.
  • " *.yaml" is smallest, containing 0.44% of LOC.


*.ipynb13203 LOC (76%) 20 files
*.py2124 LOC (12%) 16 files
*.cs870 LOC (5%) 6 files
*.java529 LOC (3%) 2 files
*.js258 LOC (1%) 1 file
*.ps1126 LOC (<1%) 10 files
*.yaml75 LOC (<1%) 6 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".
  • 2 files match defined criteria (605 LOC, 3.5% vs. main code). All matches are in *.json files.


*.json605 LOC (100%) 2 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
  • 5 files match defined criteria (185 LOC, 1.1% vs. main code):
    • 2 *.xml files (120 LOC)
    • 3 *.csproj files (65 LOC)
  • " *.xml" is biggest, containing 64.86% of LOC.
  • " *.csproj" is smallest, containing 35.14% of LOC.


*.xml120 LOC (64%) 2 files
*.csproj65 LOC (35%) 3 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 63 files match defined criteria (4,807 LOC, 28.0% vs. main code):
    • 21 *.json files (3,594 LOC)
    • 16 *.md files (834 LOC)
    • 24 *.txt files (361 LOC)
    • 2 *.properties files (18 LOC)
  • " *.json" is biggest, containing 74.77% of LOC.
  • " *.properties" is smallest, containing 0.37% of LOC.


*.json3594 LOC (74%) 21 files
*.md834 LOC (17%) 16 files
*.txt361 LOC (7%) 24 files
*.properties18 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:54