Source Code Analysis Scope
Files includes and excluded from analyses
feature
editorconfig
babelrc
mjs
eslintignore
properties
snap

scoping details...
  • 26 extensions are included in analyses: html, js, scala, svg, ts, scss, json, md, yaml, sh, tsx, gitignore, txt, sbt, feature, yml, dockerfile, css, dockerignore, xml, editorconfig, babelrc, mjs, eslintignore, properties, snap
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (1 file).
    • exclude files with path like ".*[.]bootstrap[.](js|css|less|scss|styl)" (Bootstrap) (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.
main14726 LOC (32%) 240 files
test4211 LOC (9%) 34 files
generated9916 LOC (21%) 1 file
build and deployment611 LOC (1%) 20 files
other16084 LOC (35%) 71 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst

js5965 LOC (40%) 61 files
scala2886 LOC (19%) 60 files
scss2870 LOC (19%) 31 files
html1821 LOC (12%) 68 files
yaml532 LOC (3%) 4 files
ts475 LOC (3%) 10 files
tsx100 LOC (<1%) 3 files
css40 LOC (<1%) 1 file
xml32 LOC (<1%) 1 file
mjs5 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 240 files match defined criteria (14,726 LOC, 100.0% vs. main code):
    • 61 js files (5,965 LOC)
    • 60 scala files (2,886 LOC)
    • 31 scss files (2,870 LOC)
    • 68 html files (1,821 LOC)
    • 4 yaml files (532 LOC)
    • 10 ts files (475 LOC)
    • 3 tsx files (100 LOC)
    • 1 css files (40 LOC)
    • 1 xml files (32 LOC)
    • 1 mjs files (5 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
feature
Explore:   circles  |  sunburst

ts1761 LOC (41%) 20 files
snap1655 LOC (39%) 1 file
scala365 LOC (8%) 7 files
feature266 LOC (6%) 2 files
js164 LOC (3%) 4 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/karma[.]conf[.]js".
  • 34 files match defined criteria (4,211 LOC, 28.6% vs. main code):
    • 20 ts files (1,761 LOC)
    • 1 snap files (1,655 LOC)
    • 7 scala files (365 LOC)
    • 2 feature files (266 LOC)
    • 4 js files (164 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json9916 LOC (100%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (9,916 LOC, 67.3% vs. main code). All matches are in json files.
Build and Deployment Code
Source code used to configure or support build and deployment process.
babelrc
eslintignore
editorconfig
Explore:   circles  |  sunburst

yaml160 LOC (26%) 4 files
sh141 LOC (23%) 5 files
js111 LOC (18%) 2 files
sbt91 LOC (14%) 2 files
gitignore89 LOC (14%) 3 files
dockerignore11 LOC (1%) 1 file
babelrc3 LOC (<1%) 1 file
eslintignore3 LOC (<1%) 1 file
editorconfig2 LOC (<1%) 1 file

scope details...
  • 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 ".*/package[.]json".
    • files with paths like "(.*/)?[.]babelrc([.].*)?".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]sbt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like "(.*/)?[.]eslintignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 20 files match defined criteria (611 LOC, 4.1% vs. main code):
    • 4 yaml files (160 LOC)
    • 5 sh files (141 LOC)
    • 2 js files (111 LOC)
    • 2 sbt files (91 LOC)
    • 3 gitignore files (89 LOC)
    • 1 dockerignore files (11 LOC)
    • 1 babelrc files (3 LOC)
    • 1 eslintignore files (3 LOC)
    • 1 editorconfig files (2 LOC)
Other Code
properties
Explore:   circles  |  sunburst

json12222 LOC (75%) 24 files
svg3142 LOC (19%) 36 files
md719 LOC (4%) 10 files
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 71 files match defined criteria (16,084 LOC, 109.2% vs. main code):
    • 24 json files (12,222 LOC)
    • 36 svg files (3,142 LOC)
    • 10 md files (719 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
  • *.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
  • *.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
  • *.tsx 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
  • *.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
  • *.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
  • *.mjs 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