azure / azure-sdk-for-rust
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
cmd
gitattributes
editorconfig
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.

main45531 LOC (58%) 376 files
test4616 LOC (5%) 37 files
generated16099 LOC (20%) 41 files
build and deployment24 LOC (<1%) 1 file
other11248 LOC (14%) 103 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 ".*".
  • 376 files match defined criteria (45,531 LOC, 100.0% vs. main code):
    • 237 *.rs files (28,406 LOC)
    • 105 *.ps1 files (15,483 LOC)
    • 24 *.toml files (881 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.css files (247 LOC)
    • 1 *.js files (196 LOC)
    • 3 *.cmd files (36 LOC)
    • 4 *.yaml files (19 LOC)
  • " *.rs" is biggest, containing 62.39% of LOC.
  • " *.yaml" is smallest, containing 0.04% of LOC.


*.rs28406 LOC (62%) 237 files
*.ps115483 LOC (34%) 105 files
*.toml881 LOC (1%) 24 files
*.psm1263 LOC (<1%) 1 file
*.css247 LOC (<1%) 1 file
*.js196 LOC (<1%) 1 file
*.cmd36 LOC (<1%) 3 files
*.yaml19 LOC (<1%) 4 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 ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 37 files match defined criteria (4,616 LOC, 10.1% vs. main code):
    • 32 *.rs files (4,034 LOC)
    • 3 *.ps1 files (544 LOC)
    • 2 *.toml files (38 LOC)
  • " *.rs" is biggest, containing 87.39% of LOC.
  • " *.toml" is smallest, containing 0.82% of LOC.


*.rs4034 LOC (87%) 32 files
*.ps1544 LOC (11%) 3 files
*.toml38 LOC (<1%) 2 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 ".*/generated/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 41 files match defined criteria (16,099 LOC, 35.4% vs. main code):
    • 40 *.rs files (13,313 LOC)
    • 1 *.json files (2,786 LOC)
  • " *.rs" is biggest, containing 82.69% of LOC.
  • " *.json" is smallest, containing 17.31% of LOC.


*.rs13313 LOC (82%) 40 files
*.json2786 LOC (17%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (24 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh24 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 103 files match defined criteria (11,248 LOC, 24.7% vs. main code):
    • 18 *.json files (5,083 LOC)
    • 53 *.md files (4,213 LOC)
    • 26 *.rs files (1,730 LOC)
    • 5 *.txt files (146 LOC)
    • 1 *.svg files (76 LOC)
  • " *.json" is biggest, containing 45.19% of LOC.
  • " *.svg" is smallest, containing 0.68% of LOC.


*.json5083 LOC (45%) 18 files
*.md4213 LOC (37%) 53 files
*.rs1730 LOC (15%) 26 files
*.txt146 LOC (1%) 5 files
*.svg76 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:07