firebase / firebaseui-web
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
soy
txt
hbs
  • 16 extensions are included in analyses: js, md, json, svg, html, sh, css, py, soy, yaml, scss, gitignore, txt, hbs, yml, ts
  • 6 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (1 file).
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (5 files).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (0 files).
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.

main19097 LOC (22%) 156 files
test29298 LOC (34%) 93 files
generated14350 LOC (17%) 1 files
build and deployment201 LOC (<1%) 5 files
other20819 LOC (24%) 31 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
soy
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 156 files match defined criteria (19,097 lines of code, 100.0% vs. main code):
    • 140 *.js files (14,677 lines of code)
    • 3 *.soy files (2,492 lines of code)
    • 3 *.css files (1,281 lines of code)
    • 3 *.html files (490 lines of code)
    • 3 *.py files (70 lines of code)
    • 2 *.yaml files (58 lines of code)
    • 1 *.hbs files (20 lines of code)
    • 1 *.scss files (9 lines of code)
  • " *.js" is biggest, containing 76.86% of code.
  • " *.scss" is smallest, containing 0.05% of code.


*.js14677 LOC (76%) 140 files
*.soy2492 LOC (13%) 3 files
*.css1281 LOC (6%) 3 files
*.html490 LOC (2%) 3 files
*.py70 LOC (<1%) 3 files
*.yaml58 LOC (<1%) 2 files
*.hbs20 LOC (<1%) 1 files
*.scss9 LOC (<1%) 1 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 ".*/protractor[.]conf[.]js".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with any line of content like ".*/simpletest/.*".
  • 93 files match defined criteria (29,298 lines of code, 153.4% vs. main code):
    • 90 *.js files (29,221 lines of code)
    • 1 *.sh files (39 lines of code)
    • 2 *.html files (38 lines of code)
  • " *.js" is biggest, containing 99.74% of code.
  • " *.html" is smallest, containing 0.13% of code.


*.js29221 LOC (99%) 90 files
*.sh39 LOC (<1%) 1 files
*.html38 LOC (<1%) 2 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 (14,350 lines of code, 75.1% vs. main code). All matches are in *.json files.


*.json14350 LOC (100%) 1 files
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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 5 files match defined criteria (201 lines of code, 1.1% vs. main code). All matches are in *.sh files.


*.sh201 LOC (100%) 5 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
  • 31 files match defined criteria (20,819 lines of code, 109.0% vs. main code):
    • 9 *.json files (17,761 lines of code)
    • 9 *.md files (2,570 lines of code)
    • 3 *.js files (215 lines of code)
    • 2 *.html files (168 lines of code)
    • 7 *.svg files (60 lines of code)
    • 1 *.css files (45 lines of code)
  • " *.json" is biggest, containing 85.31% of code.
  • " *.css" is smallest, containing 0.22% of code.


*.json17761 LOC (85%) 9 files
*.md2570 LOC (12%) 9 files
*.js215 LOC (1%) 3 files
*.html168 LOC (<1%) 2 files
*.svg60 LOC (<1%) 7 files
*.css45 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.soy files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.py files are analyzed with PythonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.hbs files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.scss files are analyzed with ScssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2022-02-03 05:35