azure / RAI-vNext-Preview
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
ini
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.

main5192 LOC (50%) 48 files
test2409 LOC (23%) 41 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other2609 LOC (25%) 29 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 ".*".
  • 48 files match defined criteria (5,192 LOC, 100.0% vs. main code):
    • 20 *.py files (3,838 LOC)
    • 18 *.yaml files (847 LOC)
    • 8 *.ps1 files (464 LOC)
    • 1 *.bash files (38 LOC)
    • 1 *.cfg files (5 LOC)
  • " *.py" is biggest, containing 73.92% of LOC.
  • " *.cfg" is smallest, containing 0.1% of LOC.


*.py3838 LOC (73%) 20 files
*.yaml847 LOC (16%) 18 files
*.ps1464 LOC (8%) 8 files
*.bash38 LOC (<1%) 1 file
*.cfg5 LOC (<1%) 1 file
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 ".*[-]tests[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 41 files match defined criteria (2,409 LOC, 46.4% vs. main code):
    • 22 *.py files (1,638 LOC)
    • 19 *.yaml files (771 LOC)
  • " *.py" is biggest, containing 68% of LOC.
  • " *.yaml" is smallest, containing 32% of LOC.


*.py1638 LOC (67%) 22 files
*.yaml771 LOC (32%) 19 files
Other Code
txt
ini
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
  • 29 files match defined criteria (2,609 LOC, 50.3% vs. main code):
    • 2 *.ipynb files (2,023 LOC)
    • 15 *.json files (237 LOC)
    • 5 *.md files (197 LOC)
    • 1 *.yaml files (88 LOC)
    • 5 *.txt files (61 LOC)
    • 1 *.ini files (3 LOC)
  • " *.ipynb" is biggest, containing 77.54% of LOC.
  • " *.ini" is smallest, containing 0.11% of LOC.


*.ipynb2023 LOC (77%) 2 files
*.json237 LOC (9%) 15 files
*.md197 LOC (7%) 5 files
*.yaml88 LOC (3%) 1 file
*.txt61 LOC (2%) 5 files
*.ini3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:20