azure / AKS-Edge
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.

main4741 LOC (68%) 22 files
test742 LOC (10%) 5 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1487 LOC (21%) 30 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 ".*".
  • 22 files match defined criteria (4,741 LOC, 100.0% vs. main code):
    • 18 *.ps1 files (3,564 LOC)
    • 1 *.psm1 files (1,084 LOC)
    • 1 *.psd1 files (89 LOC)
    • 2 *.cmd files (4 LOC)
  • " *.ps1" is biggest, containing 75.17% of LOC.
  • " *.cmd" is smallest, containing 0.08% of LOC.


*.ps13564 LOC (75%) 18 files
*.psm11084 LOC (22%) 1 file
*.psd189 LOC (1%) 1 file
*.cmd4 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 ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 5 files match defined criteria (742 LOC, 15.7% vs. main code). All matches are in *.ps1 files.


*.ps1742 LOC (100%) 5 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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 30 files match defined criteria (1,487 LOC, 31.4% vs. main code):
    • 12 *.yaml files (693 LOC)
    • 12 *.md files (507 LOC)
    • 6 *.json files (287 LOC)
  • " *.yaml" is biggest, containing 46.6% of LOC.
  • " *.json" is smallest, containing 19.3% of LOC.


*.yaml693 LOC (46%) 12 files
*.md507 LOC (34%) 12 files
*.json287 LOC (19%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:52