aliyun / alicloud-ios-demo
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
gitattributes
watchmanconfig
babelrc
txt
lua
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.

main19225 LOC (64%) 572 files
test14 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment7 LOC (<1%) 1 file
other10624 LOC (35%) 213 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 572 files match defined criteria (19,225 LOC, 100.0% vs. main code):
    • 147 *.m files (10,695 LOC)
    • 393 *.h files (6,491 LOC)
    • 25 *.swift files (1,851 LOC)
    • 2 *.yaml files (87 LOC)
    • 1 *.js files (66 LOC)
    • 1 *.html files (15 LOC)
    • 1 *.hpp files (10 LOC)
    • 1 *.cpp files (6 LOC)
    • 1 *.lua files (4 LOC)
  • " *.m" is biggest, containing 55.63% of LOC.
  • " *.lua" is smallest, containing 0.02% of LOC.


*.m10695 LOC (55%) 147 files
*.h6491 LOC (33%) 393 files
*.swift1851 LOC (9%) 25 files
*.yaml87 LOC (<1%) 2 files
*.js66 LOC (<1%) 1 file
*.html15 LOC (<1%) 1 file
*.hpp10 LOC (<1%) 1 file
*.cpp6 LOC (<1%) 1 file
*.lua4 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 ".*__tests__.*".
  • 2 files match defined criteria (14 LOC, 0.1% vs. main code). All matches are in *.js files.


*.js14 LOC (100%) 2 files
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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (7 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh7 LOC (100%) 1 file
Other Code
storyboard
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 213 files match defined criteria (10,624 LOC, 55.3% vs. main code):
    • 29 *.storyboard files (4,369 LOC)
    • 105 *.json files (2,853 LOC)
    • 45 *.plist files (1,454 LOC)
    • 11 *.xib files (1,106 LOC)
    • 8 *.md files (696 LOC)
    • 15 *.svg files (146 LOC)
  • " *.storyboard" is biggest, containing 41.12% of LOC.
  • " *.svg" is smallest, containing 1.37% of LOC.


*.storyboard4369 LOC (41%) 29 files
*.json2853 LOC (26%) 105 files
*.plist1454 LOC (13%) 45 files
*.xib1106 LOC (10%) 11 files
*.md696 LOC (6%) 8 files
*.svg146 LOC (1%) 15 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:53