DeloitteAU / Charts
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
storyboard
txt
podspec
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.

main18691 LOC (56%) 182 files
test785 LOC (2%) 9 files
generated0 LOC (0%) 0 files
build and deployment26 LOC (<1%) 2 files
other13483 LOC (40%) 115 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 182 files match defined criteria (18,691 LOC, 100.0% vs. main code):
    • 167 *.swift files (18,009 LOC)
    • 7 *.m files (637 LOC)
    • 8 *.h files (45 LOC)
  • " *.swift" is biggest, containing 96.35% of LOC.
  • " *.h" is smallest, containing 0.24% of LOC.


*.swift18009 LOC (96%) 167 files
*.m637 LOC (3%) 7 files
*.h45 LOC (<1%) 8 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/.*".
  • 9 files match defined criteria (785 LOC, 4.2% vs. main code). All matches are in *.swift files.


*.swift785 LOC (100%) 9 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (26 LOC, 0.1% vs. main code):
    • 1 *.podspec files (19 LOC)
    • 1 *.sh files (7 LOC)
  • " *.podspec" is biggest, containing 73.08% of LOC.
  • " *.sh" is smallest, containing 26.92% of LOC.


*.podspec19 LOC (73%) 1 file
*.sh7 LOC (26%) 1 file
Other Code
storyboard
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]xib".
  • 115 files match defined criteria (13,483 LOC, 72.1% vs. main code):
    • 3 *.md files (3,822 LOC)
    • 23 *.m files (3,541 LOC)
    • 27 *.swift files (2,656 LOC)
    • 26 *.xib files (2,177 LOC)
    • 2 *.storyboard files (866 LOC)
    • 6 *.json files (176 LOC)
    • 5 *.plist files (132 LOC)
    • 23 *.h files (113 LOC)
  • " *.md" is biggest, containing 28.35% of LOC.
  • " *.h" is smallest, containing 0.84% of LOC.


*.md3822 LOC (28%) 3 files
*.m3541 LOC (26%) 23 files
*.swift2656 LOC (19%) 27 files
*.xib2177 LOC (16%) 26 files
*.storyboard866 LOC (6%) 2 files
*.json176 LOC (1%) 6 files
*.plist132 LOC (<1%) 5 files
*.h113 LOC (<1%) 23 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:50