azure / apiops
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
csproj
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.

main23578 LOC (67%) 158 files
test10659 LOC (30%) 57 files
generated0 LOC (0%) 0 files
build and deployment91 LOC (<1%) 4 files
other496 LOC (1%) 37 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 ".*".
  • 158 files match defined criteria (23,578 LOC, 100.0% vs. main code):
    • 132 *.cs files (21,069 LOC)
    • 15 *.yaml files (1,499 LOC)
    • 1 *.graphql files (757 LOC)
    • 9 *.xml files (129 LOC)
    • 1 *.ps1 files (124 LOC)
  • " *.cs" is biggest, containing 89.36% of LOC.
  • " *.ps1" is smallest, containing 0.53% of LOC.


*.cs21069 LOC (89%) 132 files
*.yaml1499 LOC (6%) 15 files
*.graphql757 LOC (3%) 1 file
*.xml129 LOC (<1%) 9 files
*.ps1124 LOC (<1%) 1 file
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 ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*_tests[.].*".
  • 57 files match defined criteria (10,659 LOC, 45.2% vs. main code):
    • 55 *.cs files (10,620 LOC)
    • 2 *.csproj files (39 LOC)
  • " *.cs" is biggest, containing 99.63% of LOC.
  • " *.csproj" is smallest, containing 0.37% of LOC.


*.cs10620 LOC (99%) 55 files
*.csproj39 LOC (<1%) 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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 4 files match defined criteria (91 LOC, 0.4% vs. main code). All matches are in *.csproj files.


*.csproj91 LOC (100%) 4 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.]txt".
  • 37 files match defined criteria (496 LOC, 2.1% vs. main code):
    • 32 *.json files (398 LOC)
    • 5 *.md files (98 LOC)
  • " *.json" is biggest, containing 80.24% of LOC.
  • " *.md" is smallest, containing 19.76% of LOC.


*.json398 LOC (80%) 32 files
*.md98 LOC (19%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:22