apache / cordova-android
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
properties
txt
pro
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.

main8388 LOC (29%) 91 files
test5370 LOC (18%) 72 files
generated6136 LOC (21%) 1 file
build and deployment861 LOC (3%) 18 files
other7649 LOC (26%) 20 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 ".*".
  • 91 files match defined criteria (8,388 LOC, 100.0% vs. main code):
    • 43 *.java files (4,971 LOC)
    • 25 *.js files (3,121 LOC)
    • 19 *.xml files (143 LOC)
    • 1 *.css files (83 LOC)
    • 3 *.html files (70 LOC)
  • " *.java" is biggest, containing 59.26% of LOC.
  • " *.html" is smallest, containing 0.83% of LOC.


*.java4971 LOC (59%) 43 files
*.js3121 LOC (37%) 25 files
*.xml143 LOC (1%) 19 files
*.css83 LOC (<1%) 1 file
*.html70 LOC (<1%) 3 files
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 ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*_tests[.].*".
  • 72 files match defined criteria (5,370 LOC, 64.0% vs. main code):
    • 24 *.js files (3,880 LOC)
    • 14 *.java files (666 LOC)
    • 13 *.html files (421 LOC)
    • 16 *.xml files (241 LOC)
    • 1 *.css files (101 LOC)
    • 4 *.gradle files (61 LOC)
  • " *.js" is biggest, containing 72.25% of LOC.
  • " *.gradle" is smallest, containing 1.14% of LOC.


*.js3880 LOC (72%) 24 files
*.java666 LOC (12%) 14 files
*.html421 LOC (7%) 13 files
*.xml241 LOC (4%) 16 files
*.css101 LOC (1%) 1 file
*.gradle61 LOC (1%) 4 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,136 LOC, 73.2% vs. main code). All matches are in *.json files.


*.json6136 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 18 files match defined criteria (861 LOC, 10.3% vs. main code):
    • 13 *.gradle files (716 LOC)
    • 2 *.bat files (85 LOC)
    • 3 *.xml files (60 LOC)
  • " *.gradle" is biggest, containing 83.16% of LOC.
  • " *.xml" is smallest, containing 6.97% of LOC.


*.gradle716 LOC (83%) 13 files
*.bat85 LOC (9%) 2 files
*.xml60 LOC (6%) 3 files
Other Code
properties
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 ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
  • 20 files match defined criteria (7,649 LOC, 91.2% vs. main code):
    • 6 *.json files (6,251 LOC)
    • 4 *.md files (1,226 LOC)
    • 8 *.properties files (143 LOC)
    • 2 *.txt files (29 LOC)
  • " *.json" is biggest, containing 81.72% of LOC.
  • " *.txt" is smallest, containing 0.38% of LOC.


*.json6251 LOC (81%) 6 files
*.md1226 LOC (16%) 4 files
*.properties143 LOC (1%) 8 files
*.txt29 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:30