azure / azure-cli-dev-tools
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
ini
in
jinja2
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.

main8763 LOC (34%) 89 files
test1111 LOC (4%) 17 files
generated0 LOC (0%) 0 files
build and deployment41 LOC (<1%) 6 files
other15797 LOC (61%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jinja2
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 89 files match defined criteria (8,763 LOC, 100.0% vs. main code):
    • 83 *.py files (8,354 LOC)
    • 1 *.css files (196 LOC)
    • 1 *.js files (160 LOC)
    • 1 *.jinja2 files (31 LOC)
    • 2 *.toml files (16 LOC)
    • 1 *.in files (6 LOC)
  • " *.py" is biggest, containing 95.33% of LOC.
  • " *.in" is smallest, containing 0.07% of LOC.


*.py8354 LOC (95%) 83 files
*.css196 LOC (2%) 1 file
*.js160 LOC (1%) 1 file
*.jinja231 LOC (<1%) 1 file
*.toml16 LOC (<1%) 2 files
*.in6 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
  • 17 files match defined criteria (1,111 LOC, 12.7% vs. main code):
    • 16 *.py files (1,104 LOC)
    • 1 *.sh files (7 LOC)
  • " *.py" is biggest, containing 99.37% of LOC.
  • " *.sh" is smallest, containing 0.63% of LOC.


*.py1104 LOC (99%) 16 files
*.sh7 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".
  • 6 files match defined criteria (41 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh41 LOC (100%) 6 files
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
  • 34 files match defined criteria (15,797 LOC, 180.3% vs. main code):
    • 19 *.json files (15,049 LOC)
    • 8 *.rst files (555 LOC)
    • 2 *.md files (161 LOC)
    • 2 *.ini files (20 LOC)
    • 3 *.txt files (12 LOC)
  • " *.json" is biggest, containing 95.26% of LOC.
  • " *.txt" is smallest, containing 0.08% of LOC.


*.json15049 LOC (95%) 19 files
*.rst555 LOC (3%) 8 files
*.md161 LOC (1%) 2 files
*.ini20 LOC (<1%) 2 files
*.txt12 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:41