aliyun / alibabacloud-push-reactnative-plugin
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
properties
watchmanconfig
storyboard
gitattributes
editorconfig
podspec
pro
txt
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.

main3018 LOC (60%) 35 files
test1 LOC (<1%) 1 file
generated0 LOC (0%) 0 files
build and deployment403 LOC (8%) 10 files
other1600 LOC (31%) 19 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 ".*".
  • 35 files match defined criteria (3,018 LOC, 100.0% vs. main code):
    • 5 *.tsx files (1,246 LOC)
    • 10 *.java files (1,024 LOC)
    • 2 *.mm files (511 LOC)
    • 4 *.m files (123 LOC)
    • 5 *.js files (64 LOC)
    • 5 *.h files (30 LOC)
    • 3 *.xml files (19 LOC)
    • 1 *.swift files (1 LOC)
  • " *.tsx" is biggest, containing 41.29% of LOC.
  • " *.swift" is smallest, containing 0.03% of LOC.


*.tsx1246 LOC (41%) 5 files
*.java1024 LOC (33%) 10 files
*.mm511 LOC (16%) 2 files
*.m123 LOC (4%) 4 files
*.js64 LOC (2%) 5 files
*.h30 LOC (<1%) 5 files
*.xml19 LOC (<1%) 3 files
*.swift1 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]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
  • 1 file matches defined criteria (1 LOC, 0.0% vs. main code). All matches are in *.tsx files.


*.tsx1 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]podspec".
  • 10 files match defined criteria (403 LOC, 13.4% vs. main code):
    • 4 *.gradle files (186 LOC)
    • 2 *.bat files (136 LOC)
    • 3 *.xml files (52 LOC)
    • 1 *.podspec files (29 LOC)
  • " *.gradle" is biggest, containing 46.15% of LOC.
  • " *.podspec" is smallest, containing 7.2% of LOC.


*.gradle186 LOC (46%) 4 files
*.bat136 LOC (33%) 2 files
*.xml52 LOC (12%) 3 files
*.podspec29 LOC (7%) 1 file
Other Code
plist
storyboard
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
  • 19 files match defined criteria (1,600 LOC, 53.0% vs. main code):
    • 3 *.md files (1,060 LOC)
    • 7 *.json files (288 LOC)
    • 5 *.plist files (124 LOC)
    • 2 *.storyboard files (88 LOC)
    • 2 *.properties files (40 LOC)
  • " *.md" is biggest, containing 66.25% of LOC.
  • " *.properties" is smallest, containing 2.5% of LOC.


*.md1060 LOC (66%) 3 files
*.json288 LOC (18%) 7 files
*.plist124 LOC (7%) 5 files
*.storyboard88 LOC (5%) 2 files
*.properties40 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:18