spotify / flink
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
properties
txt
orc
pxd
edn
cfg
editorconfig
in
proto
ini
prettierignore
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.

  • 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.

main661539 LOC (44%) 7,649 files
test771157 LOC (52%) 5,184 files
generated757 LOC (<1%) 36 files
build and deployment22223 LOC (1%) 178 files
other15220 LOC (1%) 277 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
pxd
in
edn
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7649 files match defined criteria (661,539 LOC, 100.0% vs. main code):
    • 6,284 *.java files (519,037 LOC)
    • 1,003 *.scala files (112,730 LOC)
    • 83 *.py files (9,205 LOC)
    • 26 *.xml files (7,318 LOC)
    • 112 *.ts files (5,038 LOC)
    • 4 *.ftl files (2,756 LOC)
    • 50 *.html files (1,731 LOC)
    • 12 *.clj files (1,239 LOC)
    • 53 *.less files (1,128 LOC)
    • 5 *.pyx files (900 LOC)
    • 1 *.proto files (183 LOC)
    • 5 *.pxd files (183 LOC)
    • 1 *.in files (33 LOC)
    • 2 *.yaml files (29 LOC)
    • 5 *.edn files (19 LOC)
    • 2 *.cfg files (9 LOC)
    • 1 *.h files (1 LOC)
  • " *.java" is biggest, containing 78.46% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.java519037 LOC (78%) 6,284 files
*.scala112730 LOC (17%) 1,003 files
*.py9205 LOC (1%) 83 files
*.xml7318 LOC (1%) 26 files
*.ts5038 LOC (<1%) 112 files
*.ftl2756 LOC (<1%) 4 files
*.html1731 LOC (<1%) 50 files
*.clj1239 LOC (<1%) 12 files
*.less1128 LOC (<1%) 53 files
*.pyx900 LOC (<1%) 5 files
*.proto183 LOC (<1%) 1 file
*.pxd183 LOC (<1%) 5 files
*.in33 LOC (<1%) 1 file
*.yaml29 LOC (<1%) 2 files
*.edn19 LOC (<1%) 5 files
*.cfg9 LOC (<1%) 2 files
*.h1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
orc
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[-]data/.*".
  • 5184 files match defined criteria (771,157 LOC, 116.6% vs. main code):
    • 3,738 *.java files (496,989 LOC)
    • 894 *.scala files (162,900 LOC)
    • 245 *.xml files (82,619 LOC)
    • 7 *.orc files (9,506 LOC)
    • 66 *.py files (7,874 LOC)
    • 109 *.sql files (4,751 LOC)
    • 71 *.sh files (4,718 LOC)
    • 39 *.yaml files (1,346 LOC)
    • 7 *.avsc files (276 LOC)
    • 5 *.clj files (137 LOC)
    • 1 *.js files (29 LOC)
    • 1 *.ts files (7 LOC)
    • 1 *.cfg files (5 LOC)
  • " *.java" is biggest, containing 64.45% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java496989 LOC (64%) 3,738 files
*.scala162900 LOC (21%) 894 files
*.xml82619 LOC (10%) 245 files
*.orc9506 LOC (1%) 7 files
*.py7874 LOC (1%) 66 files
*.sql4751 LOC (<1%) 109 files
*.sh4718 LOC (<1%) 71 files
*.yaml1346 LOC (<1%) 39 files
*.avsc276 LOC (<1%) 7 files
*.clj137 LOC (<1%) 5 files
*.js29 LOC (<1%) 1 file
*.ts7 LOC (<1%) 1 file
*.cfg5 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 36 files match defined criteria (757 LOC, 0.1% vs. main code). All matches are in *.java files.


*.java757 LOC (100%) 36 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
  • 178 files match defined criteria (22,223 LOC, 3.4% vs. main code):
    • 139 *.xml files (20,302 LOC)
    • 39 *.sh files (1,921 LOC)
  • " *.xml" is biggest, containing 91.36% of LOC.
  • " *.sh" is smallest, containing 8.64% of LOC.


*.xml20302 LOC (91%) 139 files
*.sh1921 LOC (8%) 39 files
Other Code
properties
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]prettierignore".
  • 277 files match defined criteria (15,220 LOC, 2.3% vs. main code):
    • 110 *.java files (8,110 LOC)
    • 91 *.properties files (2,450 LOC)
    • 34 *.scala files (1,963 LOC)
    • 2 *.svg files (940 LOC)
    • 14 *.md files (654 LOC)
    • 11 *.json files (583 LOC)
    • 1 *.xml files (271 LOC)
    • 11 *.txt files (158 LOC)
    • 1 *.ini files (49 LOC)
    • 2 *.py files (42 LOC)
  • " *.java" is biggest, containing 53.29% of LOC.
  • " *.py" is smallest, containing 0.28% of LOC.


*.java8110 LOC (53%) 110 files
*.properties2450 LOC (16%) 91 files
*.scala1963 LOC (12%) 34 files
*.svg940 LOC (6%) 2 files
*.md654 LOC (4%) 14 files
*.json583 LOC (3%) 11 files
*.xml271 LOC (1%) 1 file
*.txt158 LOC (1%) 11 files
*.ini49 LOC (<1%) 1 file
*.py42 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:43