azure / ARO-HCP
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
mod
mk
tpl
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.

main35772 LOC (48%) 386 files
test8234 LOC (11%) 57 files
generated6853 LOC (9%) 19 files
build and deployment1114 LOC (1%) 38 files
other21586 LOC (29%) 121 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 ".*".
  • 386 files match defined criteria (35,772 LOC, 100.0% vs. main code):
    • 253 *.yaml files (21,667 LOC)
    • 124 *.go files (13,417 LOC)
    • 3 *.py files (395 LOC)
    • 4 *.ps1 files (265 LOC)
    • 2 *.tpl files (28 LOC)
  • " *.yaml" is biggest, containing 60.57% of LOC.
  • " *.tpl" is smallest, containing 0.08% of LOC.


*.yaml21667 LOC (60%) 253 files
*.go13417 LOC (37%) 124 files
*.py395 LOC (1%) 3 files
*.ps1265 LOC (<1%) 4 files
*.tpl28 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 ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 57 files match defined criteria (8,234 LOC, 23.0% vs. main code):
    • 54 *.go files (8,039 LOC)
    • 2 *.py files (172 LOC)
    • 1 *.yaml files (23 LOC)
  • " *.go" is biggest, containing 97.63% of LOC.
  • " *.yaml" is smallest, containing 0.28% of LOC.


*.go8039 LOC (97%) 54 files
*.py172 LOC (2%) 2 files
*.yaml23 LOC (<1%) 1 file
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 paths like ".*/generated/.*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 19 files match defined criteria (6,853 LOC, 19.2% vs. main code):
    • 18 *.go files (4,847 LOC)
    • 1 *.json files (2,006 LOC)
  • " *.go" is biggest, containing 70.73% of LOC.
  • " *.json" is smallest, containing 29.27% of LOC.


*.go4847 LOC (70%) 18 files
*.json2006 LOC (29%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
  • 38 files match defined criteria (1,114 LOC, 3.1% vs. main code):
    • 33 *.sh files (1,055 LOC)
    • 5 *.mk files (59 LOC)
  • " *.sh" is biggest, containing 94.7% of LOC.
  • " *.mk" is smallest, containing 5.3% of LOC.


*.sh1055 LOC (94%) 33 files
*.mk59 LOC (5%) 5 files
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
  • 121 files match defined criteria (21,586 LOC, 60.3% vs. main code):
    • 74 *.json files (19,485 LOC)
    • 26 *.md files (1,108 LOC)
    • 11 *.mod files (666 LOC)
    • 9 *.sh files (301 LOC)
    • 1 *.txt files (26 LOC)
  • " *.json" is biggest, containing 90.27% of LOC.
  • " *.txt" is smallest, containing 0.12% of LOC.


*.json19485 LOC (90%) 74 files
*.md1108 LOC (5%) 26 files
*.mod666 LOC (3%) 11 files
*.sh301 LOC (1%) 9 files
*.txt26 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:05