apache / cordova-ios
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
npmignore
gitattributes
podspec
npmrc
eslintignore
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.

main6988 LOC (18%) 89 files
test13854 LOC (37%) 109 files
generated6230 LOC (16%) 1 file
build and deployment21 LOC (<1%) 1 file
other9807 LOC (26%) 44 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 ".*".
  • 89 files match defined criteria (6,988 LOC, 100.0% vs. main code):
    • 18 *.js files (3,196 LOC)
    • 25 *.m files (2,984 LOC)
    • 38 *.h files (564 LOC)
    • 2 *.xml files (96 LOC)
    • 1 *.css files (83 LOC)
    • 4 *.swift files (43 LOC)
    • 1 *.html files (22 LOC)
  • " *.js" is biggest, containing 45.74% of LOC.
  • " *.html" is smallest, containing 0.31% of LOC.


*.js3196 LOC (45%) 18 files
*.m2984 LOC (42%) 25 files
*.h564 LOC (8%) 38 files
*.xml96 LOC (1%) 2 files
*.css83 LOC (1%) 1 file
*.swift43 LOC (<1%) 4 files
*.html22 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/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 109 files match defined criteria (13,854 LOC, 198.3% vs. main code):
    • 33 *.js files (11,760 LOC)
    • 21 *.m files (1,207 LOC)
    • 33 *.xml files (716 LOC)
    • 7 *.swift files (73 LOC)
    • 1 *.html files (50 LOC)
    • 14 *.h files (48 LOC)
  • " *.js" is biggest, containing 84.89% of LOC.
  • " *.h" is smallest, containing 0.35% of LOC.


*.js11760 LOC (84%) 33 files
*.m1207 LOC (8%) 21 files
*.xml716 LOC (5%) 33 files
*.swift73 LOC (<1%) 7 files
*.html50 LOC (<1%) 1 file
*.h48 LOC (<1%) 14 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (6,230 LOC, 89.2% vs. main code). All matches are in *.json files.


*.json6230 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (21 LOC, 0.3% vs. main code). All matches are in *.podspec files.


*.podspec21 LOC (100%) 1 file
Other Code
plist
storyboard
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
  • 44 files match defined criteria (9,807 LOC, 140.3% vs. main code):
    • 16 *.json files (6,785 LOC)
    • 8 *.md files (2,473 LOC)
    • 14 *.plist files (210 LOC)
    • 4 *.storyboard files (184 LOC)
    • 1 *.txt files (154 LOC)
    • 1 *.xib files (1 LOC)
  • " *.json" is biggest, containing 69.19% of LOC.
  • " *.xib" is smallest, containing 0.01% of LOC.


*.json6785 LOC (69%) 16 files
*.md2473 LOC (25%) 8 files
*.plist210 LOC (2%) 14 files
*.storyboard184 LOC (1%) 4 files
*.txt154 LOC (1%) 1 file
*.xib1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:30