Source Code Analysis Scope
Files includes and excluded from analyses
mjs
properties
npmrc
prettierignore
plist
jsonl
proto

scoping details...
  • 27 extensions are included in analyses: swift, kt, ts, xml, md, tsx, kts, json, sh, css, py, gitignore, html, yml, txt, mjs, java, properties, js, npmrc, toml, prettierignore, plist, bat, yaml, jsonl, proto
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (30 files).
    • exclude files with path like ".*/docs?/_?(build|themes?|templates?|static)/.*" (Sphinx) (0 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (2 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.
main65497 LOC (54%) 549 files
test16074 LOC (13%) 88 files
generated14927 LOC (12%) 5 files
build and deployment1972 LOC (1%) 57 files
other21189 LOC (17%) 148 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
proto
jsonl
Explore:   circles  |  sunburst

swift44576 LOC (68%) 346 files
kt9508 LOC (14%) 79 files
ts4208 LOC (6%) 37 files
tsx2975 LOC (4%) 24 files
css1364 LOC (2%) 5 files
py885 LOC (1%) 6 files
java830 LOC (1%) 7 files
kts607 LOC (<1%) 19 files
mjs181 LOC (<1%) 6 files
yaml125 LOC (<1%) 6 files
toml105 LOC (<1%) 3 files
html48 LOC (<1%) 4 files
xml43 LOC (<1%) 5 files
proto39 LOC (<1%) 1 file
jsonl3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 549 files match defined criteria (65,497 LOC, 100.0% vs. main code):
    • 346 swift files (44,576 LOC)
    • 79 kt files (9,508 LOC)
    • 37 ts files (4,208 LOC)
    • 24 tsx files (2,975 LOC)
    • 5 css files (1,364 LOC)
    • 6 py files (885 LOC)
    • 7 java files (830 LOC)
    • 19 kts files (607 LOC)
    • 6 mjs files (181 LOC)
    • 6 yaml files (125 LOC)
    • 3 toml files (105 LOC)
    • 4 html files (48 LOC)
    • 5 xml files (43 LOC)
    • 1 proto files (39 LOC)
    • 1 jsonl files (3 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

kt8293 LOC (51%) 50 files
py3023 LOC (18%) 7 files
ts2773 LOC (17%) 18 files
tsx1882 LOC (11%) 10 files
sh64 LOC (<1%) 2 files
mjs39 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 88 files match defined criteria (16,074 LOC, 24.5% vs. main code):
    • 50 kt files (8,293 LOC)
    • 7 py files (3,023 LOC)
    • 18 ts files (2,773 LOC)
    • 10 tsx files (1,882 LOC)
    • 2 sh files (64 LOC)
    • 1 mjs files (39 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json14564 LOC (97%) 4 files
swift363 LOC (2%) 1 file

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 .*".
  • 5 files match defined criteria (14,927 LOC, 22.8% vs. main code):
    • 4 json files (14,564 LOC)
    • 1 swift files (363 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
npmrc
Explore:   circles  |  sunburst

sh894 LOC (45%) 19 files
yaml591 LOC (29%) 5 files
xml290 LOC (14%) 17 files
gitignore116 LOC (5%) 9 files
bat72 LOC (3%) 1 file
prettierignore6 LOC (<1%) 3 files
npmrc3 LOC (<1%) 3 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 57 files match defined criteria (1,972 LOC, 3.0% vs. main code):
    • 19 sh files (894 LOC)
    • 5 yaml files (591 LOC)
    • 17 xml files (290 LOC)
    • 9 gitignore files (116 LOC)
    • 1 bat files (72 LOC)
    • 3 prettierignore files (6 LOC)
    • 3 npmrc files (3 LOC)
Other Code
mjs
properties
plist
Explore:   circles  |  sunburst

json15045 LOC (71%) 25 files
md2087 LOC (9%) 40 files
kt2033 LOC (9%) 25 files
xml624 LOC (2%) 29 files
txt346 LOC (1%) 4 files
kts298 LOC (1%) 10 files
ts290 LOC (1%) 3 files
mjs173 LOC (<1%) 1 file
css94 LOC (<1%) 1 file
bat72 LOC (<1%) 1 file
html39 LOC (<1%) 1 file
properties33 LOC (<1%) 2 files
plist28 LOC (<1%) 2 files
py17 LOC (<1%) 1 file
gitignore10 LOC (<1%) 3 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]plist".
  • 148 files match defined criteria (21,189 LOC, 32.4% vs. main code):
    • 25 json files (15,045 LOC)
    • 40 md files (2,087 LOC)
    • 25 kt files (2,033 LOC)
    • 29 xml files (624 LOC)
    • 4 txt files (346 LOC)
    • 10 kts files (298 LOC)
    • 3 ts files (290 LOC)
    • 1 mjs files (173 LOC)
    • 1 css files (94 LOC)
    • 1 bat files (72 LOC)
    • 1 html files (39 LOC)
    • 2 properties files (33 LOC)
    • 2 plist files (28 LOC)
    • 1 py files (17 LOC)
    • 3 gitignore files (10 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...
  • *.swift files are analyzed with SwiftAnalyzer:
    • 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
  • *.kt files are analyzed with KotlinAnalyzer:
    • 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 (based on imports and package statements)
  • *.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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
  • *.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)
  • *.kts files are analyzed with KotlinAnalyzer:
    • 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 (based on imports and package statements)
  • *.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
  • *.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
  • *.toml 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
  • *.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
  • *.proto 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
  • *.jsonl files are analyzed with JsonAnalyzer:
    • 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