angular / angularfire
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
editorconfig
njk
webmanifest
txt
npmignore
gitattributes
  • 16 extensions are included in analyses: ts, json, md, js, css, html, gitignore, editorconfig, njk, sh, webmanifest, svg, txt, yml, npmignore, gitattributes
  • 6 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (30 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (31 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) (1 file).
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.

main8849 LOC (39%) 184 files
test3385 LOC (15%) 53 files
generated0 LOC (0%) 0 files
build and deployment36 LOC (<1%) 3 files
other10191 LOC (45%) 279 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
njk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 184 files match defined criteria (8,849 lines of code, 100.0% vs. main code):
    • 158 *.ts files (7,787 lines of code)
    • 20 *.js files (530 lines of code)
    • 2 *.css files (381 lines of code)
    • 4 *.njk files (151 lines of code)
  • " *.ts" is biggest, containing 88% of code.
  • " *.njk" is smallest, containing 1.71% of code.


*.ts7787 LOC (87%) 158 files
*.js530 LOC (5%) 20 files
*.css381 LOC (4%) 2 files
*.njk151 LOC (1%) 4 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/protractor[.]conf[.]js".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with any line of content like ".*/simpletest/.*".
  • 53 files match defined criteria (3,385 lines of code, 38.3% vs. main code):
    • 45 *.ts files (3,259 lines of code)
    • 3 *.js files (92 lines of code)
    • 2 *.html files (31 lines of code)
    • 2 *.css files (2 lines of code)
    • 1 *.sh files (1 lines of code)
  • " *.ts" is biggest, containing 96.28% of code.
  • " *.sh" is smallest, containing 0.03% of code.


*.ts3259 LOC (96%) 45 files
*.js92 LOC (2%) 3 files
*.html31 LOC (<1%) 2 files
*.css2 LOC (<1%) 2 files
*.sh1 LOC (<1%) 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[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (36 lines of code, 0.4% vs. main code). All matches are in *.sh files.


*.sh36 LOC (100%) 3 files
Other Code
webmanifest
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 ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
  • 279 files match defined criteria (10,191 lines of code, 115.2% vs. main code):
    • 44 *.md files (3,688 lines of code)
    • 94 *.json files (3,185 lines of code)
    • 114 *.ts files (2,857 lines of code)
    • 9 *.js files (204 lines of code)
    • 3 *.webmanifest files (177 lines of code)
    • 7 *.html files (72 lines of code)
    • 7 *.css files (7 lines of code)
    • 1 *.svg files (1 lines of code)
  • " *.md" is biggest, containing 36.19% of code.
  • " *.svg" is smallest, containing 0.01% of code.


*.md3688 LOC (36%) 44 files
*.json3185 LOC (31%) 94 files
*.ts2857 LOC (28%) 114 files
*.js204 LOC (2%) 9 files
*.webmanifest177 LOC (1%) 3 files
*.html72 LOC (<1%) 7 files
*.css7 LOC (<1%) 7 files
*.svg1 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • 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
  • *.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
  • *.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
  • *.njk 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


2022-02-02 22:18