apache / cordova-common
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
vcxproj
plist
npmignore
npmrc
txt
cmd
eslintignore
properties
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.

main2477 LOC (11%) 37 files
test3104 LOC (13%) 58 files
generated8005 LOC (36%) 1 file
build and deployment120 LOC (<1%) 3 files
other8524 LOC (38%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 37 files match defined criteria (2,477 LOC, 100.0% vs. main code):
    • 21 *.js files (2,018 LOC)
    • 13 *.xml files (453 LOC)
    • 1 *.cmd files (4 LOC)
    • 1 *.java files (1 LOC)
    • 1 *.html files (1 LOC)
  • " *.js" is biggest, containing 81.47% of LOC.
  • " *.html" is smallest, containing 0.04% of LOC.


*.js2018 LOC (81%) 21 files
*.xml453 LOC (18%) 13 files
*.cmd4 LOC (<1%) 1 file
*.java1 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
vcxproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 58 files match defined criteria (3,104 LOC, 125.3% vs. main code):
    • 21 *.js files (2,556 LOC)
    • 13 *.xml files (500 LOC)
    • 4 *.vcxproj files (28 LOC)
    • 7 *.h files (7 LOC)
    • 7 *.m files (7 LOC)
    • 2 *.cs files (2 LOC)
    • 2 *.java files (2 LOC)
    • 1 *.gradle files (1 LOC)
    • 1 *.html files (1 LOC)
  • " *.js" is biggest, containing 82.35% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.js2556 LOC (82%) 21 files
*.xml500 LOC (16%) 13 files
*.vcxproj28 LOC (<1%) 4 files
*.h7 LOC (<1%) 7 files
*.m7 LOC (<1%) 7 files
*.cs2 LOC (<1%) 2 files
*.java2 LOC (<1%) 2 files
*.gradle1 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
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 (8,005 LOC, 323.2% vs. main code). All matches are in *.json files.


*.json8005 LOC (100%) 1 file
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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (120 LOC, 4.8% vs. main code). All matches are in *.xml files.


*.xml120 LOC (100%) 3 files
Other Code
plist
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
  • 10 files match defined criteria (8,524 LOC, 344.1% vs. main code):
    • 3 *.json files (8,069 LOC)
    • 3 *.md files (388 LOC)
    • 2 *.plist files (65 LOC)
    • 1 *.xib files (1 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 94.66% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.json8069 LOC (94%) 3 files
*.md388 LOC (4%) 3 files
*.plist65 LOC (<1%) 2 files
*.xib1 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 17:30