Source Code Analysis Scope
Files includes and excluded from analyses
properties
tpl
prettierignore

scoping details...
  • 23 extensions are included in analyses: java, vue, ts, md, gradle, yaml, json, yml, txt, svg, gitignore, bat, sh, dockerfile, properties, scss, js, xml, html, cjs, tpl, pl, prettierignore
  • 10 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/cache/.*" (Caches) (5 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (3 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*/docs/.*" (Documentation) (25 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) (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.
main37831 LOC (56%) 477 files
test4813 LOC (7%) 45 files
generated11147 LOC (16%) 2 files
build and deployment1132 LOC (1%) 33 files
other11749 LOC (17%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst

java22439 LOC (59%) 355 files
vue10146 LOC (26%) 64 files
ts2613 LOC (6%) 37 files
js1656 LOC (4%) 1 file
yaml771 LOC (2%) 17 files
pl101 LOC (<1%) 1 file
scss92 LOC (<1%) 1 file
html13 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 477 files match defined criteria (37,831 LOC, 100.0% vs. main code):
    • 355 java files (22,439 LOC)
    • 64 vue files (10,146 LOC)
    • 37 ts files (2,613 LOC)
    • 1 js files (1,656 LOC)
    • 17 yaml files (771 LOC)
    • 1 pl files (101 LOC)
    • 1 scss files (92 LOC)
    • 1 html files (13 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

java4780 LOC (99%) 43 files
ts17 LOC (<1%) 1 file
xml16 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
  • 45 files match defined criteria (4,813 LOC, 12.7% vs. main code):
    • 43 java files (4,780 LOC)
    • 1 ts files (17 LOC)
    • 1 xml files (16 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json11147 LOC (100%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "//[ ]*Generated by .*".
  • 2 files match defined criteria (11,147 LOC, 29.5% vs. main code). All matches are in json files.
Build and Deployment Code
Source code used to configure or support build and deployment process.
tpl
prettierignore
Explore:   circles  |  sunburst

gradle525 LOC (46%) 16 files
yaml252 LOC (22%) 6 files
bat111 LOC (9%) 2 files
tpl97 LOC (8%) 1 file
sh76 LOC (6%) 2 files
gitignore56 LOC (4%) 4 files
cjs13 LOC (1%) 1 file
prettierignore2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • 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 "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/Chart[.]ya?ml".
    • files with paths like ".*/templates/.*[.]tpl".
    • files with paths like ".*[.]bat".
  • 33 files match defined criteria (1,132 LOC, 3.0% vs. main code):
    • 16 gradle files (525 LOC)
    • 6 yaml files (252 LOC)
    • 2 bat files (111 LOC)
    • 1 tpl files (97 LOC)
    • 2 sh files (76 LOC)
    • 4 gitignore files (56 LOC)
    • 1 cjs files (13 LOC)
    • 1 prettierignore files (2 LOC)
Other Code
properties
Explore:   circles  |  sunburst

json11290 LOC (96%) 10 files
md206 LOC (1%) 8 files
svg186 LOC (1%) 3 files
properties38 LOC (<1%) 1 file
txt29 LOC (<1%) 2 files

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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 24 files match defined criteria (11,749 LOC, 31.1% vs. main code):
    • 10 json files (11,290 LOC)
    • 8 md files (206 LOC)
    • 3 svg files (186 LOC)
    • 1 properties files (38 LOC)
    • 2 txt files (29 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...
  • *.java files are analyzed with JavaAnalyzer:
    • 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 (based on package names)
  • *.vue 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
  • *.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
  • *.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
  • *.pl files are analyzed with PerlAnalyzer:
    • 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