Source Code Analysis Scope
Files includes and excluded from analyses
har
eslintignore
npmignore
watchmanconfig
hbs
editorconfig
prettierignore

scoping details...
  • 18 extensions are included in analyses: js, md, json, ts, har, html, txt, css, gitignore, sh, eslintignore, npmignore, watchmanconfig, mustache, hbs, editorconfig, yml, prettierignore
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (33 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (13 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (1 file).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • 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) (1 file).
    • exclude files with path like ".*/_sokrates/.*" (Sokrates files) (0 files).
    • exclude files with path like ".*/_sokrates_landscape/.*" (Sokrates landscape files) (0 files).
    • exclude files with path like ".*/sokrates_.*?[.]json" (Sokrates conventions and configurations) (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.
main3868 LOC (22%) 98 files
test5272 LOC (31%) 98 files
generated0 LOC (0%) 0 files
build and deployment336 LOC (1%) 17 files
other7427 LOC (43%) 101 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
watchmanconfig
Explore:   circles  |  sunburst

js3865 LOC (99%) 97 files
watchmanconfig3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 98 files match defined criteria (3,868 LOC, 100.0% vs. main code):
    • 97 js files (3,865 LOC)
    • 1 watchmanconfig files (3 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
hbs
Explore:   circles  |  sunburst

js5166 LOC (97%) 92 files
html54 LOC (1%) 2 files
mustache36 LOC (<1%) 1 file
sh12 LOC (<1%) 1 file
hbs3 LOC (<1%) 1 file
css1 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[-]helpers/.*".
  • 98 files match defined criteria (5,272 LOC, 136.3% vs. main code):
    • 92 js files (5,166 LOC)
    • 2 html files (54 LOC)
    • 1 mustache files (36 LOC)
    • 1 sh files (12 LOC)
    • 1 hbs files (3 LOC)
    • 1 css files (1 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmignore
eslintignore
prettierignore
editorconfig
Explore:   circles  |  sunburst

js170 LOC (50%) 8 files
gitignore41 LOC (12%) 2 files
npmignore33 LOC (9%) 1 file
eslintignore25 LOC (7%) 2 files
yaml18 LOC (5%) 1 file
sh17 LOC (5%) 1 file
prettierignore17 LOC (5%) 1 file
editorconfig15 LOC (4%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like "(.*/)?[.]mocharc([.].*)?".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]npmignore".
    • files with paths like "(.*/)?[.]npmignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like "(.*/)?[.]eslintignore".
    • files with paths like ".*/[.]travis[.]yml".
  • 17 files match defined criteria (336 LOC, 8.7% vs. main code):
    • 8 js files (170 LOC)
    • 2 gitignore files (41 LOC)
    • 1 npmignore files (33 LOC)
    • 2 eslintignore files (25 LOC)
    • 1 yaml files (18 LOC)
    • 1 sh files (17 LOC)
    • 1 prettierignore files (17 LOC)
    • 1 editorconfig files (15 LOC)
Other Code
har
Explore:   circles  |  sunburst

md4823 LOC (64%) 35 files
json1206 LOC (16%) 29 files
js606 LOC (8%) 23 files
har601 LOC (8%) 4 files
ts93 LOC (1%) 4 files
html75 LOC (1%) 3 files
gitignore16 LOC (<1%) 1 file
css4 LOC (<1%) 1 file
txt3 LOC (<1%) 1 file

scope details...
  • 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 101 files match defined criteria (7,427 LOC, 192.0% vs. main code):
    • 35 md files (4,823 LOC)
    • 29 json files (1,206 LOC)
    • 23 js files (606 LOC)
    • 4 har files (601 LOC)
    • 4 ts files (93 LOC)
    • 3 html files (75 LOC)
    • 1 gitignore files (16 LOC)
    • 1 css files (4 LOC)
    • 1 txt files (3 LOC)
About This Analysis
learn more about scopes (main, test, generated, build, 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.

learn more about used code analyzers...
  • *.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
  • *.watchmanconfig 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