aliyun / aliyun-log-ios-sdk
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
podspec
txt
gitattributes
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.

main24324 LOC (64%) 294 files
test571 LOC (1%) 10 files
generated6228 LOC (16%) 18 files
build and deployment937 LOC (2%) 35 files
other5522 LOC (14%) 158 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 ".*".
  • 294 files match defined criteria (24,324 LOC, 100.0% vs. main code):
    • 77 *.m files (8,194 LOC)
    • 18 *.c files (5,866 LOC)
    • 38 *.swift files (5,422 LOC)
    • 158 *.h files (4,617 LOC)
    • 1 *.mm files (194 LOC)
    • 1 *.cpp files (22 LOC)
    • 1 *.hpp files (9 LOC)
  • " *.m" is biggest, containing 33.69% of LOC.
  • " *.hpp" is smallest, containing 0.04% of LOC.


*.m8194 LOC (33%) 77 files
*.c5866 LOC (24%) 18 files
*.swift5422 LOC (22%) 38 files
*.h4617 LOC (18%) 158 files
*.mm194 LOC (<1%) 1 file
*.cpp22 LOC (<1%) 1 file
*.hpp9 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 ".*/[Tt]ests/.*".
  • 10 files match defined criteria (571 LOC, 2.3% vs. main code):
    • 6 *.m files (527 LOC)
    • 1 *.swift files (33 LOC)
    • 3 *.h files (11 LOC)
  • " *.m" is biggest, containing 92.29% of LOC.
  • " *.h" is smallest, containing 1.93% of LOC.


*.m527 LOC (92%) 6 files
*.swift33 LOC (5%) 1 file
*.h11 LOC (1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 18 files match defined criteria (6,228 LOC, 25.6% vs. main code). All matches are in *.h files.


*.h6228 LOC (100%) 18 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".
    • files with paths like ".*/[.]gitattributes".
  • 35 files match defined criteria (937 LOC, 3.9% vs. main code):
    • 26 *.sh files (528 LOC)
    • 9 *.podspec files (409 LOC)
  • " *.sh" is biggest, containing 56.35% of LOC.
  • " *.podspec" is smallest, containing 43.65% of LOC.


*.sh528 LOC (56%) 26 files
*.podspec409 LOC (43%) 9 files
Other Code
storyboard
plist
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 ".*[.]storyboard".
    • 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 ".*[.]txt".
  • 158 files match defined criteria (5,522 LOC, 22.7% vs. main code):
    • 21 *.m files (1,472 LOC)
    • 13 *.storyboard files (1,306 LOC)
    • 52 *.plist files (1,262 LOC)
    • 37 *.json files (728 LOC)
    • 3 *.md files (240 LOC)
    • 1 *.mm files (190 LOC)
    • 4 *.swift files (127 LOC)
    • 21 *.h files (103 LOC)
    • 4 *.txt files (63 LOC)
    • 1 *.cpp files (22 LOC)
    • 1 *.hpp files (9 LOC)
  • " *.m" is biggest, containing 26.66% of LOC.
  • " *.hpp" is smallest, containing 0.16% of LOC.


*.m1472 LOC (26%) 21 files
*.storyboard1306 LOC (23%) 13 files
*.plist1262 LOC (22%) 52 files
*.json728 LOC (13%) 37 files
*.md240 LOC (4%) 3 files
*.mm190 LOC (3%) 1 file
*.swift127 LOC (2%) 4 files
*.h103 LOC (1%) 21 files
*.txt63 LOC (1%) 4 files
*.cpp22 LOC (<1%) 1 file
*.hpp9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:55