aliyun / alibabacloud-rum-ios-buildpack
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.

main3927 LOC (83%) 104 files
test6 LOC (<1%) 1 file
generated0 LOC (0%) 0 files
build and deployment330 LOC (7%) 6 files
other441 LOC (9%) 33 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 ".*".
  • 104 files match defined criteria (3,927 LOC, 100.0% vs. main code):
    • 101 *.h files (3,434 LOC)
    • 2 *.swift files (337 LOC)
    • 1 *.m files (156 LOC)
  • " *.h" is biggest, containing 87.45% of LOC.
  • " *.m" is smallest, containing 3.97% of LOC.


*.h3434 LOC (87%) 101 files
*.swift337 LOC (8%) 2 files
*.m156 LOC (3%) 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/.*".
  • 1 file matches defined criteria (6 LOC, 0.2% vs. main code). All matches are in *.swift files.


*.swift6 LOC (100%) 1 file
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]podspec".
  • 6 files match defined criteria (330 LOC, 8.4% vs. main code):
    • 5 *.sh files (306 LOC)
    • 1 *.podspec files (24 LOC)
  • " *.sh" is biggest, containing 92.73% of LOC.
  • " *.podspec" is smallest, containing 7.27% of LOC.


*.sh306 LOC (92%) 5 files
*.podspec24 LOC (7%) 1 file
Other Code
plist
storyboard
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".
  • 33 files match defined criteria (441 LOC, 11.2% vs. main code):
    • 14 *.plist files (202 LOC)
    • 7 *.json files (66 LOC)
    • 2 *.storyboard files (64 LOC)
    • 4 *.m files (58 LOC)
    • 2 *.swift files (39 LOC)
    • 3 *.h files (10 LOC)
    • 1 *.md files (2 LOC)
  • " *.plist" is biggest, containing 45.8% of LOC.
  • " *.md" is smallest, containing 0.45% of LOC.


*.plist202 LOC (45%) 14 files
*.json66 LOC (14%) 7 files
*.storyboard64 LOC (14%) 2 files
*.m58 LOC (13%) 4 files
*.swift39 LOC (8%) 2 files
*.h10 LOC (2%) 3 files
*.md2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:22