azure / Avere
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
tpl
mod
csx
proj
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.

main21243 LOC (32%) 205 files
test1659 LOC (2%) 13 files
generated0 LOC (0%) 0 files
build and deployment4221 LOC (6%) 45 files
other39060 LOC (59%) 409 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 ".*".
  • 205 files match defined criteria (21,243 LOC, 100.0% vs. main code):
    • 93 *.go files (14,934 LOC)
    • 87 *.tf files (4,485 LOC)
    • 6 *.py files (990 LOC)
    • 2 *.ps1 files (526 LOC)
    • 15 *.tpl files (179 LOC)
    • 2 *.yaml files (129 LOC)
  • " *.go" is biggest, containing 70.3% of LOC.
  • " *.yaml" is smallest, containing 0.61% of LOC.


*.go14934 LOC (70%) 93 files
*.tf4485 LOC (21%) 87 files
*.py990 LOC (4%) 6 files
*.ps1526 LOC (2%) 2 files
*.tpl179 LOC (<1%) 15 files
*.yaml129 LOC (<1%) 2 files
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 ".*/e2e/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 13 files match defined criteria (1,659 LOC, 7.8% vs. main code):
    • 10 *.py files (1,416 LOC)
    • 3 *.sh files (243 LOC)
  • " *.py" is biggest, containing 85.35% of LOC.
  • " *.sh" is smallest, containing 14.65% of LOC.


*.py1416 LOC (85%) 10 files
*.sh243 LOC (14%) 3 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 45 files match defined criteria (4,221 LOC, 19.9% vs. main code). All matches are in *.sh files.


*.sh4221 LOC (100%) 45 files
Other Code
txt
tpl
csx
mod
proj
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
  • 409 files match defined criteria (39,060 LOC, 183.9% vs. main code):
    • 140 *.tf files (20,810 LOC)
    • 147 *.md files (5,990 LOC)
    • 48 *.json files (5,608 LOC)
    • 22 *.tfvars files (2,492 LOC)
    • 14 *.ps1 files (1,840 LOC)
    • 16 *.sh files (1,695 LOC)
    • 13 *.txt files (506 LOC)
    • 5 *.tpl files (54 LOC)
    • 1 *.csx files (36 LOC)
    • 2 *.mod files (21 LOC)
    • 1 *.proj files (8 LOC)
  • " *.tf" is biggest, containing 53.28% of LOC.
  • " *.proj" is smallest, containing 0.02% of LOC.


*.tf20810 LOC (53%) 140 files
*.md5990 LOC (15%) 147 files
*.json5608 LOC (14%) 48 files
*.tfvars2492 LOC (6%) 22 files
*.ps11840 LOC (4%) 14 files
*.sh1695 LOC (4%) 16 files
*.txt506 LOC (1%) 13 files
*.tpl54 LOC (<1%) 5 files
*.csx36 LOC (<1%) 1 file
*.mod21 LOC (<1%) 2 files
*.proj8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:37