azure / draft
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
gitattributes
tpl
txt
mod
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.

main20512 LOC (74%) 199 files
test5912 LOC (21%) 183 files
generated38 LOC (<1%) 2 files
build and deployment140 LOC (<1%) 1 file
other943 LOC (3%) 15 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 ".*".
  • 199 files match defined criteria (20,512 LOC, 100.0% vs. main code):
    • 61 *.go files (14,681 LOC)
    • 128 *.yaml files (5,714 LOC)
    • 2 *.tpl files (77 LOC)
    • 3 *.html files (29 LOC)
    • 5 *.py files (11 LOC)
  • " *.go" is biggest, containing 71.57% of LOC.
  • " *.py" is smallest, containing 0.05% of LOC.


*.go14681 LOC (71%) 61 files
*.yaml5714 LOC (27%) 128 files
*.tpl77 LOC (<1%) 2 files
*.html29 LOC (<1%) 3 files
*.py11 LOC (<1%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 183 files match defined criteria (5,912 LOC, 28.8% vs. main code):
    • 39 *.go files (3,515 LOC)
    • 136 *.yaml files (2,262 LOC)
    • 2 *.tpl files (58 LOC)
    • 2 *.sh files (39 LOC)
    • 4 *.ps1 files (38 LOC)
  • " *.go" is biggest, containing 59.46% of LOC.
  • " *.ps1" is smallest, containing 0.64% of LOC.


*.go3515 LOC (59%) 39 files
*.yaml2262 LOC (38%) 136 files
*.tpl58 LOC (<1%) 2 files
*.sh39 LOC (<1%) 2 files
*.ps138 LOC (<1%) 4 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".
    • files with any line of content like "//[ ]*Generated by .*".
  • 2 files match defined criteria (38 LOC, 0.2% vs. main code):
    • 1 *.go files (32 LOC)
    • 1 *.json files (6 LOC)
  • " *.go" is biggest, containing 84.21% of LOC.
  • " *.json" is smallest, containing 15.79% of LOC.


*.go32 LOC (84%) 1 file
*.json6 LOC (15%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]gradle".
  • 1 file matches defined criteria (140 LOC, 0.7% vs. main code). All matches are in *.sh files.


*.sh140 LOC (100%) 1 file
Other Code
mod
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 ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 15 files match defined criteria (943 LOC, 4.6% vs. main code):
    • 9 *.md files (499 LOC)
    • 4 *.json files (272 LOC)
    • 1 *.mod files (171 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 52.92% of LOC.
  • " *.txt" is smallest, containing 0.11% of LOC.


*.md499 LOC (52%) 9 files
*.json272 LOC (28%) 4 files
*.mod171 LOC (18%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:20