azure / linux-image-validations
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
cfg
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.

main1130 LOC (54%) 30 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment249 LOC (12%) 7 files
other680 LOC (33%) 5 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 30 files match defined criteria (1,130 LOC, 100.0% vs. main code):
    • 11 *.yaml files (565 LOC)
    • 13 *.py files (388 LOC)
    • 5 *.tf files (175 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.yaml" is biggest, containing 50% of LOC.
  • " *.cfg" is smallest, containing 0.18% of LOC.


*.yaml565 LOC (50%) 11 files
*.py388 LOC (34%) 13 files
*.tf175 LOC (15%) 5 files
*.cfg2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (249 LOC, 22.0% vs. main code). All matches are in *.sh files.


*.sh249 LOC (100%) 7 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 5 files match defined criteria (680 LOC, 60.2% vs. main code):
    • 1 *.json files (433 LOC)
    • 4 *.md files (247 LOC)
  • " *.json" is biggest, containing 63.68% of LOC.
  • " *.md" is smallest, containing 36.32% of LOC.


*.json433 LOC (63%) 1 file
*.md247 LOC (36%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:02