azure / azure-sdk-for-ios
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
plist
txt
cmd
storyboard
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.

main26683 LOC (58%) 256 files
test8356 LOC (18%) 69 files
generated2786 LOC (6%) 1 file
build and deployment45 LOC (<1%) 3 files
other7720 LOC (16%) 112 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 ".*".
  • 256 files match defined criteria (26,683 LOC, 100.0% vs. main code):
    • 96 *.ps1 files (14,928 LOC)
    • 150 *.swift files (10,654 LOC)
    • 4 *.py files (359 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.css files (247 LOC)
    • 1 *.js files (196 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.ps1" is biggest, containing 55.95% of LOC.
  • " *.cmd" is smallest, containing 0.13% of LOC.


*.ps114928 LOC (55%) 96 files
*.swift10654 LOC (39%) 150 files
*.py359 LOC (1%) 4 files
*.psm1263 LOC (<1%) 1 file
*.css247 LOC (<1%) 1 file
*.js196 LOC (<1%) 1 file
*.cmd36 LOC (<1%) 3 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 ".*/test_.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*_tests[.].*".
  • 69 files match defined criteria (8,356 LOC, 31.3% vs. main code):
    • 54 *.swift files (7,167 LOC)
    • 5 *.m files (547 LOC)
    • 3 *.ps1 files (544 LOC)
    • 4 *.xml files (53 LOC)
    • 1 *.py files (29 LOC)
    • 2 *.h files (16 LOC)
  • " *.swift" is biggest, containing 85.77% of LOC.
  • " *.h" is smallest, containing 0.19% of LOC.


*.swift7167 LOC (85%) 54 files
*.m547 LOC (6%) 5 files
*.ps1544 LOC (6%) 3 files
*.xml53 LOC (<1%) 4 files
*.py29 LOC (<1%) 1 file
*.h16 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,786 LOC, 10.4% vs. main code). All matches are in *.json files.


*.json2786 LOC (100%) 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".
  • 3 files match defined criteria (45 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh45 LOC (100%) 3 files
Other Code
plist
storyboard
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]storyboard".
    • 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 ".*[.]svg".
  • 112 files match defined criteria (7,720 LOC, 28.9% vs. main code):
    • 52 *.json files (3,936 LOC)
    • 29 *.md files (3,069 LOC)
    • 21 *.plist files (524 LOC)
    • 1 *.svg files (76 LOC)
    • 5 *.swift files (65 LOC)
    • 2 *.storyboard files (47 LOC)
    • 2 *.txt files (3 LOC)
  • " *.json" is biggest, containing 50.98% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.json3936 LOC (50%) 52 files
*.md3069 LOC (39%) 29 files
*.plist524 LOC (6%) 21 files
*.svg76 LOC (<1%) 1 file
*.swift65 LOC (<1%) 5 files
*.storyboard47 LOC (<1%) 2 files
*.txt3 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:30