apache / cordova-lib
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
txt
properties
npmignore
gitattributes
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.

main2084 LOC (22%) 45 files
test5646 LOC (61%) 86 files
generated0 LOC (0%) 0 files
build and deployment12 LOC (<1%) 8 files
other1404 LOC (15%) 25 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 ".*".
  • 45 files match defined criteria (2,084 LOC, 100.0% vs. main code):
    • 29 *.js files (1,758 LOC)
    • 11 *.xml files (140 LOC)
    • 1 *.css files (83 LOC)
    • 2 *.html files (61 LOC)
    • 1 *.java files (24 LOC)
    • 1 *.m files (18 LOC)
  • " *.js" is biggest, containing 84.36% of LOC.
  • " *.m" is smallest, containing 0.86% of LOC.


*.js1758 LOC (84%) 29 files
*.xml140 LOC (6%) 11 files
*.css83 LOC (3%) 1 file
*.html61 LOC (2%) 2 files
*.java24 LOC (1%) 1 file
*.m18 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[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]tests/.*".
  • 86 files match defined criteria (5,646 LOC, 270.9% vs. main code):
    • 47 *.js files (5,333 LOC)
    • 15 *.xml files (261 LOC)
    • 4 *.vcxproj files (28 LOC)
    • 7 *.h files (7 LOC)
    • 7 *.m files (7 LOC)
    • 1 *.gradle files (5 LOC)
    • 2 *.cs files (2 LOC)
    • 2 *.java files (2 LOC)
    • 1 *.html files (1 LOC)
  • " *.js" is biggest, containing 94.46% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.js5333 LOC (94%) 47 files
*.xml261 LOC (4%) 15 files
*.vcxproj28 LOC (<1%) 4 files
*.h7 LOC (<1%) 7 files
*.m7 LOC (<1%) 7 files
*.gradle5 LOC (<1%) 1 file
*.cs2 LOC (<1%) 2 files
*.java2 LOC (<1%) 2 files
*.html1 LOC (<1%) 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 ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • 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 ".*/[.]gitattributes".
  • 8 files match defined criteria (12 LOC, 0.6% vs. main code):
    • 4 *.bat files (8 LOC)
    • 4 *.sh files (4 LOC)
  • " *.bat" is biggest, containing 66.67% of LOC.
  • " *.sh" is smallest, containing 33.33% of LOC.


*.bat8 LOC (66%) 4 files
*.sh4 LOC (33%) 4 files
Other Code
txt
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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]xib".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
  • 25 files match defined criteria (1,404 LOC, 67.4% vs. main code):
    • 3 *.md files (1,074 LOC)
    • 13 *.json files (297 LOC)
    • 1 *.xml files (25 LOC)
    • 5 *.txt files (5 LOC)
    • 2 *.properties files (2 LOC)
    • 1 *.xib files (1 LOC)
  • " *.md" is biggest, containing 76.5% of LOC.
  • " *.xib" is smallest, containing 0.07% of LOC.


*.md1074 LOC (76%) 3 files
*.json297 LOC (21%) 13 files
*.xml25 LOC (1%) 1 file
*.txt5 LOC (<1%) 5 files
*.properties2 LOC (<1%) 2 files
*.xib1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:04