apache / cordova-docs
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
htaccess
npmrc
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.

main3882 LOC (10%) 51 files
test0 LOC (0%) 0 files
generated7400 LOC (19%) 1 file
build and deployment0 LOC (0%) 0 files
other26488 LOC (70%) 333 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 ".*".
  • 51 files match defined criteria (3,882 LOC, 100.0% vs. main code):
    • 10 *.scss files (1,746 LOC)
    • 29 *.html files (1,203 LOC)
    • 6 *.js files (602 LOC)
    • 1 *.css files (213 LOC)
    • 2 *.rdf files (54 LOC)
    • 2 *.xml files (52 LOC)
    • 1 *.rb files (12 LOC)
  • " *.scss" is biggest, containing 44.98% of LOC.
  • " *.rb" is smallest, containing 0.31% of LOC.


*.scss1746 LOC (44%) 10 files
*.html1203 LOC (30%) 29 files
*.js602 LOC (15%) 6 files
*.css213 LOC (5%) 1 file
*.rdf54 LOC (1%) 2 files
*.xml52 LOC (1%) 2 files
*.rb12 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 (7,400 LOC, 190.6% vs. main code). All matches are in *.json files.


*.json7400 LOC (100%) 1 file
Other Code
txt
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 ".*[.]npmrc".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]htaccess".
  • 333 files match defined criteria (26,488 LOC, 682.3% vs. main code):
    • 318 *.md files (18,299 LOC)
    • 2 *.json files (7,440 LOC)
    • 12 *.svg files (745 LOC)
    • 1 *.txt files (4 LOC)
  • " *.md" is biggest, containing 69.08% of LOC.
  • " *.txt" is smallest, containing 0.02% of LOC.


*.md18299 LOC (69%) 318 files
*.json7440 LOC (28%) 2 files
*.svg745 LOC (2%) 12 files
*.txt4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:31