Source Code Analysis Scope
Files includes and excluded from analyses
properties
editorconfig

scoping details...
  • 16 extensions are included in analyses: java, md, gradle, properties, json, svg, yml, txt, xml, sh, css, jsp, bat, editorconfig, html, gitignore
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (59 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 ".*/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.
main84431 LOC (62%) 1,016 files
test42771 LOC (31%) 239 files
generated0 LOC (0%) 0 files
build and deployment1782 LOC (1%) 53 files
other6813 LOC (5%) 117 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

java83915 LOC (99%) 1,011 files
xml492 LOC (<1%) 2 files
html13 LOC (<1%) 1 file
jsp9 LOC (<1%) 1 file
yaml2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1016 files match defined criteria (84,431 LOC, 100.0% vs. main code):
    • 1,011 java files (83,915 LOC)
    • 2 xml files (492 LOC)
    • 1 html files (13 LOC)
    • 1 jsp files (9 LOC)
    • 1 yaml files (2 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

java42702 LOC (99%) 237 files
xml69 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 239 files match defined criteria (42,771 LOC, 50.7% vs. main code):
    • 237 java files (42,702 LOC)
    • 2 xml files (69 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
editorconfig
Explore:   circles  |  sunburst

gradle1280 LOC (71%) 43 files
yaml250 LOC (14%) 5 files
gitignore158 LOC (8%) 1 file
bat71 LOC (3%) 1 file
editorconfig13 LOC (<1%) 1 file
sh10 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*[.]bat".
  • 53 files match defined criteria (1,782 LOC, 2.1% vs. main code):
    • 43 gradle files (1,280 LOC)
    • 5 yaml files (250 LOC)
    • 1 gitignore files (158 LOC)
    • 1 bat files (71 LOC)
    • 1 editorconfig files (13 LOC)
    • 2 sh files (10 LOC)
Other Code
properties
Explore:   circles  |  sunburst

md3282 LOC (48%) 27 files
java2436 LOC (35%) 46 files
json573 LOC (8%) 14 files
properties510 LOC (7%) 28 files
txt12 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 117 files match defined criteria (6,813 LOC, 8.1% vs. main code):
    • 27 md files (3,282 LOC)
    • 46 java files (2,436 LOC)
    • 14 json files (573 LOC)
    • 28 properties files (510 LOC)
    • 2 txt files (12 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)
  • *.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
  • *.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
  • *.jsp files are analyzed with JspAnalyzer:
    • 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