apache / cordova-mobile-spec
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
txt
cmd
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.

main2756 LOC (75%) 42 files
test661 LOC (18%) 9 files
generated0 LOC (0%) 0 files
build and deployment3 LOC (<1%) 2 files
other224 LOC (6%) 7 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 ".*".
  • 42 files match defined criteria (2,756 LOC, 100.0% vs. main code):
    • 18 *.js files (1,342 LOC)
    • 14 *.html files (940 LOC)
    • 1 *.css files (141 LOC)
    • 3 *.xml files (124 LOC)
    • 2 *.java files (117 LOC)
    • 1 *.m files (38 LOC)
    • 1 *.h files (23 LOC)
    • 1 *.cpp files (16 LOC)
    • 1 *.cmd files (15 LOC)
  • " *.js" is biggest, containing 48.69% of LOC.
  • " *.cmd" is smallest, containing 0.54% of LOC.


*.js1342 LOC (48%) 18 files
*.html940 LOC (34%) 14 files
*.css141 LOC (5%) 1 file
*.xml124 LOC (4%) 3 files
*.java117 LOC (4%) 2 files
*.m38 LOC (1%) 1 file
*.h23 LOC (<1%) 1 file
*.cpp16 LOC (<1%) 1 file
*.cmd15 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 9 files match defined criteria (661 LOC, 24.0% vs. main code):
    • 7 *.js files (617 LOC)
    • 1 *.xml files (32 LOC)
    • 1 *.java files (12 LOC)
  • " *.js" is biggest, containing 93.34% of LOC.
  • " *.java" is smallest, containing 1.82% of LOC.


*.js617 LOC (93%) 7 files
*.xml32 LOC (4%) 1 file
*.java12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (3 LOC, 0.1% vs. main code):
    • 1 *.sh files (2 LOC)
    • 1 *.gradle files (1 LOC)
  • " *.sh" is biggest, containing 66.67% of LOC.
  • " *.gradle" is smallest, containing 33.33% of LOC.


*.sh2 LOC (66%) 1 file
*.gradle1 LOC (33%) 1 file
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 7 files match defined criteria (224 LOC, 8.1% vs. main code):
    • 5 *.md files (196 LOC)
    • 1 *.json files (24 LOC)
    • 1 *.properties files (4 LOC)
  • " *.md" is biggest, containing 87.5% of LOC.
  • " *.properties" is smallest, containing 1.79% of LOC.


*.md196 LOC (87%) 5 files
*.json24 LOC (10%) 1 file
*.properties4 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:21