Source Code Analysis Scope
Files includes and excluded from analyses
tern-project
babelrc
properties

scoping details...
  • 17 extensions are included in analyses: js, scala, scss, svg, html, yaml, txt, sh, md, json, yml, sbt, tern-project, babelrc, gitignore, xml, properties
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (2 files).
    • exclude files with path like "(?i).*/require.*[.]js" (RequireJS files) (1 file).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (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.
main18646 LOC (82%) 322 files
test190 LOC (<1%) 7 files
generated0 LOC (0%) 0 files
build and deployment437 LOC (1%) 14 files
other3335 LOC (14%) 33 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tern-project
Explore:   circles  |  sunburst

js8714 LOC (46%) 142 files
scala7111 LOC (38%) 119 files
scss2073 LOC (11%) 46 files
yaml593 LOC (3%) 7 files
html113 LOC (<1%) 6 files
xml26 LOC (<1%) 1 file
tern-project16 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 322 files match defined criteria (18,646 LOC, 100.0% vs. main code):
    • 142 js files (8,714 LOC)
    • 119 scala files (7,111 LOC)
    • 46 scss files (2,073 LOC)
    • 7 yaml files (593 LOC)
    • 6 html files (113 LOC)
    • 1 xml files (26 LOC)
    • 1 tern-project files (16 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

scala190 LOC (100%) 7 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 7 files match defined criteria (190 LOC, 1.0% vs. main code). All matches are in scala files.
Build and Deployment Code
Source code used to configure or support build and deployment process.
babelrc
Explore:   circles  |  sunburst

js179 LOC (40%) 3 files
yaml119 LOC (27%) 4 files
sbt89 LOC (20%) 2 files
sh30 LOC (6%) 3 files
gitignore17 LOC (3%) 1 file
babelrc3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like "(.*/)?[.]babelrc([.].*)?".
    • files with paths like ".*[.]sbt".
    • 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 ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
  • 14 files match defined criteria (437 LOC, 2.3% vs. main code):
    • 3 js files (179 LOC)
    • 4 yaml files (119 LOC)
    • 2 sbt files (89 LOC)
    • 3 sh files (30 LOC)
    • 1 gitignore files (17 LOC)
    • 1 babelrc files (3 LOC)
Other Code
properties
Explore:   circles  |  sunburst

svg3218 LOC (96%) 29 files
json74 LOC (2%) 2 files
md42 LOC (1%) 1 file
properties1 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 33 files match defined criteria (3,335 LOC, 17.9% vs. main code):
    • 29 svg files (3,218 LOC)
    • 2 json files (74 LOC)
    • 1 md files (42 LOC)
    • 1 properties files (1 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
  • *.scala files are analyzed with ScalaAnalyzer:
    • 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
  • *.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
  • *.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
  • *.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
  • *.xml files are analyzed with XmlAnalyzer:
    • 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
  • *.tern-project 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