Source Code Analysis Scope
Files includes and excluded from analyses
properties
cfg
cproject

scoping details...
  • 20 extensions are included in analyses: java, js, h, cpp, txt, gradle, html, sh, cc, xml, md, json, properties, yml, css, cfg, cproject, bat, c, gitignore
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (8 files).
    • exclude files with path like ".*/dist/.*" (Distributions) (0 files).
    • 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.
main67612 LOC (29%) 580 files
test142185 LOC (62%) 380 files
generated0 LOC (0%) 0 files
build and deployment365 LOC (<1%) 9 files
other18025 LOC (7%) 285 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cproject
Explore:   circles  |  sunburst

js20228 LOC (29%) 157 files
h17574 LOC (25%) 185 files
java14913 LOC (22%) 128 files
cpp14235 LOC (21%) 96 files
c267 LOC (<1%) 1 file
cproject247 LOC (<1%) 1 file
html80 LOC (<1%) 11 files
xml68 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 580 files match defined criteria (67,612 LOC, 100.0% vs. main code):
    • 157 js files (20,228 LOC)
    • 185 h files (17,574 LOC)
    • 128 java files (14,913 LOC)
    • 96 cpp files (14,235 LOC)
    • 1 c files (267 LOC)
    • 1 cproject files (247 LOC)
    • 11 html files (80 LOC)
    • 1 xml files (68 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cproject
Explore:   circles  |  sunburst

js58602 LOC (41%) 98 files
java29973 LOC (21%) 119 files
cpp26809 LOC (18%) 91 files
h24763 LOC (17%) 59 files
cc1048 LOC (<1%) 7 files
cproject503 LOC (<1%) 1 file
html315 LOC (<1%) 1 file
css80 LOC (<1%) 1 file
xml63 LOC (<1%) 1 file
gradle29 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[.].*".
  • 380 files match defined criteria (142,185 LOC, 210.3% vs. main code):
    • 98 js files (58,602 LOC)
    • 119 java files (29,973 LOC)
    • 91 cpp files (26,809 LOC)
    • 59 h files (24,763 LOC)
    • 7 cc files (1,048 LOC)
    • 1 cproject files (503 LOC)
    • 1 html files (315 LOC)
    • 1 css files (80 LOC)
    • 1 xml files (63 LOC)
    • 2 gradle files (29 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst

yaml145 LOC (39%) 3 files
gradle124 LOC (33%) 3 files
bat67 LOC (18%) 1 file
gitignore16 LOC (4%) 1 file
sh13 LOC (3%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/CMakeLists[.]txt".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*[.]bat".
  • 9 files match defined criteria (365 LOC, 0.5% vs. main code):
    • 3 yaml files (145 LOC)
    • 3 gradle files (124 LOC)
    • 1 bat files (67 LOC)
    • 1 gitignore files (16 LOC)
    • 1 sh files (13 LOC)
Other Code
properties
Explore:   circles  |  sunburst

java11271 LOC (62%) 203 files
txt4780 LOC (26%) 36 files
js1158 LOC (6%) 17 files
html320 LOC (1%) 1 file
json198 LOC (1%) 5 files
md85 LOC (<1%) 6 files
gradle79 LOC (<1%) 9 files
css69 LOC (<1%) 1 file
xml33 LOC (<1%) 3 files
properties32 LOC (<1%) 4 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • 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 ".*/[Ee]xamples/.*".
  • 285 files match defined criteria (18,025 LOC, 26.7% vs. main code):
    • 203 java files (11,271 LOC)
    • 36 txt files (4,780 LOC)
    • 17 js files (1,158 LOC)
    • 1 html files (320 LOC)
    • 5 json files (198 LOC)
    • 6 md files (85 LOC)
    • 9 gradle files (79 LOC)
    • 1 css files (69 LOC)
    • 3 xml files (33 LOC)
    • 4 properties files (32 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
  • *.h files are analyzed with CppAnalyzer:
    • 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
  • *.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)
  • *.cpp files are analyzed with CppAnalyzer:
    • 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
  • *.c files are analyzed with CStyleAnalyzer:
    • 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
  • *.cproject 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
  • *.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