angular / angular-cn
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
jade
es6
txt
editorconfig
babelrc
xlf
ejs
  • 23 extensions are included in analyses: ts, html, json, js, jade, css, scss, md, es6, gitignore, svg, sh, less, yaml, txt, dart, editorconfig, babelrc, xlf, bat, MD, yml, ejs
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (29 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (1704 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (0 files).
    • exclude files with path like ".*[.]txt" (Text files) (2 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (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.

main11488 LOC (77%) 225 files
test1043 LOC (7%) 31 files
generated0 LOC (0%) 0 files
build and deployment165 LOC (1%) 10 files
other2071 LOC (14%) 68 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jade
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 225 files match defined criteria (11,488 lines of code, 100.0% vs. main code):
    • 95 *.js files (4,991 lines of code)
    • 58 *.scss files (4,086 lines of code)
    • 32 *.jade files (1,549 lines of code)
    • 29 *.html files (589 lines of code)
    • 7 *.less files (207 lines of code)
    • 1 *.ejs files (41 lines of code)
    • 1 *.yaml files (17 lines of code)
    • 2 *.ts files (8 lines of code)
  • " *.js" is biggest, containing 43.45% of code.
  • " *.ts" is smallest, containing 0.07% of code.


*.js4991 LOC (43%) 95 files
*.scss4086 LOC (35%) 58 files
*.jade1549 LOC (13%) 32 files
*.html589 LOC (5%) 29 files
*.less207 LOC (1%) 7 files
*.ejs41 LOC (<1%) 1 files
*.yaml17 LOC (<1%) 1 files
*.ts8 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
jade
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/protractor[.]conf[.]js".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with any line of content like ".*/simpletest/.*".
    • files with paths like ".*/mock[-].*".
  • 31 files match defined criteria (1,043 lines of code, 9.1% vs. main code):
    • 18 *.js files (770 lines of code)
    • 2 *.jade files (172 lines of code)
    • 5 *.ts files (53 lines of code)
    • 3 *.html files (30 lines of code)
    • 2 *.yaml files (16 lines of code)
    • 1 *.css files (2 lines of code)
  • " *.js" is biggest, containing 73.83% of code.
  • " *.css" is smallest, containing 0.19% of code.


*.js770 LOC (73%) 18 files
*.jade172 LOC (16%) 2 files
*.ts53 LOC (5%) 5 files
*.html30 LOC (2%) 3 files
*.yaml16 LOC (1%) 2 files
*.css2 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 ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (165 lines of code, 1.4% vs. main code):
    • 9 *.sh files (164 lines of code)
    • 1 *.bat files (1 lines of code)
  • " *.sh" is biggest, containing 99.39% of code.
  • " *.bat" is smallest, containing 0.61% of code.


*.sh164 LOC (99%) 9 files
*.bat1 LOC (<1%) 1 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 68 files match defined criteria (2,071 lines of code, 18.0% vs. main code):
    • 17 *.json files (1,040 lines of code)
    • 11 *.svg files (630 lines of code)
    • 40 *.md files (401 lines of code)
  • " *.json" is biggest, containing 50.22% of code.
  • " *.md" is smallest, containing 19.36% of code.


*.json1040 LOC (50%) 17 files
*.svg630 LOC (30%) 11 files
*.md401 LOC (19%) 40 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
  • *.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
  • *.jade files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and 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
  • *.less files are analyzed with LessAnalyzer:
    • 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
  • *.ejs files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No 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
  • *.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


2022-02-02 22:19