azure / SAI.msft
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
ini
p4
txt
proto
cfg
in
gv
gitmodules
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.

main99691 LOC (64%) 234 files
test34198 LOC (22%) 91 files
generated0 LOC (0%) 0 files
build and deployment116 LOC (<1%) 4 files
other21351 LOC (13%) 104 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
p4
proto
gv
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 234 files match defined criteria (99,691 LOC, 100.0% vs. main code):
    • 54 *.py files (64,998 LOC)
    • 105 *.h files (12,576 LOC)
    • 4 *.c files (6,693 LOC)
    • 25 *.cpp files (5,487 LOC)
    • 8 *.pl files (4,971 LOC)
    • 26 *.pm files (3,950 LOC)
    • 6 *.p4 files (586 LOC)
    • 3 *.proto files (229 LOC)
    • 1 *.gv files (176 LOC)
    • 1 *.cfg files (24 LOC)
    • 1 *.in files (1 LOC)
  • " *.py" is biggest, containing 65.2% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.py64998 LOC (65%) 54 files
*.h12576 LOC (12%) 105 files
*.c6693 LOC (6%) 4 files
*.cpp5487 LOC (5%) 25 files
*.pl4971 LOC (4%) 8 files
*.pm3950 LOC (3%) 26 files
*.p4586 LOC (<1%) 6 files
*.proto229 LOC (<1%) 3 files
*.gv176 LOC (<1%) 1 file
*.cfg24 LOC (<1%) 1 file
*.in1 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 91 files match defined criteria (34,198 LOC, 34.3% vs. main code):
    • 51 *.py files (20,041 LOC)
    • 23 *.cpp files (12,745 LOC)
    • 15 *.h files (596 LOC)
    • 1 *.pm files (488 LOC)
    • 1 *.thrift files (328 LOC)
  • " *.py" is biggest, containing 58.6% of LOC.
  • " *.thrift" is smallest, containing 0.96% of LOC.


*.py20041 LOC (58%) 51 files
*.cpp12745 LOC (37%) 23 files
*.h596 LOC (1%) 15 files
*.pm488 LOC (1%) 1 file
*.thrift328 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".
    • files with paths like ".*/[.]gitmodules".
  • 4 files match defined criteria (116 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh116 LOC (100%) 4 files
Other Code
txt
ini
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 104 files match defined criteria (21,351 LOC, 21.4% vs. main code):
    • 87 *.md files (20,075 LOC)
    • 5 *.json files (644 LOC)
    • 5 *.txt files (433 LOC)
    • 7 *.ini files (199 LOC)
  • " *.md" is biggest, containing 94.02% of LOC.
  • " *.ini" is smallest, containing 0.93% of LOC.


*.md20075 LOC (94%) 87 files
*.json644 LOC (3%) 5 files
*.txt433 LOC (2%) 5 files
*.ini199 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:21