azure / azure-devops-cli-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
txt
cfg
gitattributes
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.

main135319 LOC (79%) 669 files
test28129 LOC (16%) 108 files
generated478 LOC (<1%) 1 file
build and deployment0 LOC (0%) 0 files
other6034 LOC (3%) 43 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 ".*".
  • 669 files match defined criteria (135,319 LOC, 100.0% vs. main code):
    • 654 *.py files (132,636 LOC)
    • 11 *.ps1 files (2,318 LOC)
    • 1 *.xml files (198 LOC)
    • 1 *.psm1 files (143 LOC)
    • 1 *.psd1 files (22 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.py" is biggest, containing 98.02% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.py132636 LOC (98%) 654 files
*.ps12318 LOC (1%) 11 files
*.xml198 LOC (<1%) 1 file
*.psm1143 LOC (<1%) 1 file
*.psd122 LOC (<1%) 1 file
*.cfg2 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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 108 files match defined criteria (28,129 LOC, 20.8% vs. main code):
    • 104 *.py files (23,350 LOC)
    • 4 *.yaml files (4,779 LOC)
  • " *.py" is biggest, containing 83.01% of LOC.
  • " *.yaml" is smallest, containing 16.99% of LOC.


*.py23350 LOC (83%) 104 files
*.yaml4779 LOC (16%) 4 files
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".
  • 1 file matches defined criteria (478 LOC, 0.4% vs. main code). All matches are in *.json files.


*.json478 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 43 files match defined criteria (6,034 LOC, 4.5% vs. main code):
    • 2 *.txt files (3,449 LOC)
    • 8 *.json files (941 LOC)
    • 17 *.md files (866 LOC)
    • 14 *.ps1 files (773 LOC)
    • 2 *.rst files (5 LOC)
  • " *.txt" is biggest, containing 57.16% of LOC.
  • " *.rst" is smallest, containing 0.08% of LOC.


*.txt3449 LOC (57%) 2 files
*.json941 LOC (15%) 8 files
*.md866 LOC (14%) 17 files
*.ps1773 LOC (12%) 14 files
*.rst5 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:28