elastic / azure-vm-extension
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
cmd
txt
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.

main1541 LOC (41%) 17 files
test328 LOC (8%) 9 files
generated0 LOC (0%) 0 files
build and deployment1116 LOC (29%) 11 files
other769 LOC (20%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 17 files match defined criteria (1,541 LOC, 100.0% vs. main code):
    • 10 *.ps1 files (1,471 LOC)
    • 1 *.yaml files (35 LOC)
    • 1 *.asciidoc files (20 LOC)
    • 5 *.cmd files (15 LOC)
  • " *.ps1" is biggest, containing 95.46% of LOC.
  • " *.cmd" is smallest, containing 0.97% of LOC.


*.ps11471 LOC (95%) 10 files
*.yaml35 LOC (2%) 1 file
*.asciidoc20 LOC (1%) 1 file
*.cmd15 LOC (<1%) 5 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 ".*/[Tt]est/.*".
  • 9 files match defined criteria (328 LOC, 21.3% vs. main code):
    • 4 *.tf files (182 LOC)
    • 1 *.py files (124 LOC)
    • 1 *.sh files (14 LOC)
    • 3 *.ps1 files (8 LOC)
  • " *.tf" is biggest, containing 55.49% of LOC.
  • " *.ps1" is smallest, containing 2.44% of LOC.


*.tf182 LOC (55%) 4 files
*.py124 LOC (37%) 1 file
*.sh14 LOC (4%) 1 file
*.ps18 LOC (2%) 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".
    • files with paths like ".*[.]dockerfile".
  • 11 files match defined criteria (1,116 LOC, 72.4% vs. main code):
    • 7 *.sh files (1,093 LOC)
    • 4 *.dockerfile files (23 LOC)
  • " *.sh" is biggest, containing 97.94% of LOC.
  • " *.dockerfile" is smallest, containing 2.06% of LOC.


*.sh1093 LOC (97%) 7 files
*.dockerfile23 LOC (2%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 18 files match defined criteria (769 LOC, 49.9% vs. main code):
    • 10 *.json files (342 LOC)
    • 1 *.txt files (236 LOC)
    • 7 *.md files (191 LOC)
  • " *.json" is biggest, containing 44.47% of LOC.
  • " *.md" is smallest, containing 24.84% of LOC.


*.json342 LOC (44%) 10 files
*.txt236 LOC (30%) 1 file
*.md191 LOC (24%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:55