azure / azure-service-operator
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
mod
gitattributes
tpl
gitmodules
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.

main1574823 LOC (54%) 3,356 files
test1156284 LOC (39%) 1,999 files
generated0 LOC (0%) 0 files
build and deployment983 LOC (<1%) 32 files
other176316 LOC (6%) 1,045 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3356 files match defined criteria (1,574,823 LOC, 100.0% vs. main code):
    • 3,238 *.go files (1,527,097 LOC)
    • 110 *.yaml files (47,340 LOC)
    • 7 *.py files (376 LOC)
    • 1 *.tpl files (10 LOC)
  • " *.go" is biggest, containing 96.97% of LOC.
  • " *.tpl" is smallest, containing 0% of LOC.


*.go1527097 LOC (96%) 3,238 files
*.yaml47340 LOC (3%) 110 files
*.py376 LOC (<1%) 7 files
*.tpl10 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 ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/testing[.].*".
  • 1999 files match defined criteria (1,156,284 LOC, 73.4% vs. main code):
    • 1,998 *.go files (1,156,281 LOC)
    • 1 *.yaml files (3 LOC)
  • " *.go" is biggest, containing 100% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.go1156281 LOC (99%) 1,998 files
*.yaml3 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
  • 32 files match defined criteria (983 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh983 LOC (100%) 32 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 1045 files match defined criteria (176,316 LOC, 11.2% vs. main code):
    • 424 *.txt files (154,835 LOC)
    • 555 *.yaml files (8,639 LOC)
    • 60 *.md files (7,169 LOC)
    • 1 *.json files (5,303 LOC)
    • 5 *.mod files (370 LOC)
  • " *.txt" is biggest, containing 87.82% of LOC.
  • " *.mod" is smallest, containing 0.21% of LOC.


*.txt154835 LOC (87%) 424 files
*.yaml8639 LOC (4%) 555 files
*.md7169 LOC (4%) 60 files
*.json5303 LOC (3%) 1 file
*.mod370 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:54