apache / 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
q
txt
proto
pxd
orc
cfg
in
editorconfig
cmd
eslintignore
stylelintignore
pyi
gitmodules
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.

main924342 LOC (43%) 9,588 files
test1057520 LOC (50%) 6,236 files
generated999 LOC (<1%) 41 files
build and deployment18635 LOC (<1%) 157 files
other106413 LOC (5%) 530 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
proto
pxd
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 9588 files match defined criteria (924,342 LOC, 100.0% vs. main code):
    • 8,566 *.java files (806,359 LOC)
    • 528 *.scala files (70,296 LOC)
    • 172 *.py files (24,799 LOC)
    • 136 *.ts files (8,239 LOC)
    • 70 *.html files (4,311 LOC)
    • 2 *.ftl files (3,327 LOC)
    • 7 *.pyx files (2,022 LOC)
    • 73 *.less files (1,691 LOC)
    • 16 *.xml files (1,142 LOC)
    • 2 *.g4 files (708 LOC)
    • 1 *.pyi files (535 LOC)
    • 1 *.proto files (447 LOC)
    • 7 *.pxd files (363 LOC)
    • 2 *.in files (56 LOC)
    • 1 *.toml files (33 LOC)
    • 3 *.cfg files (13 LOC)
    • 1 *.h files (1 LOC)
  • " *.java" is biggest, containing 87.24% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.java806359 LOC (87%) 8,566 files
*.scala70296 LOC (7%) 528 files
*.py24799 LOC (2%) 172 files
*.ts8239 LOC (<1%) 136 files
*.html4311 LOC (<1%) 70 files
*.ftl3327 LOC (<1%) 2 files
*.pyx2022 LOC (<1%) 7 files
*.less1691 LOC (<1%) 73 files
*.xml1142 LOC (<1%) 16 files
*.g4708 LOC (<1%) 2 files
*.pyi535 LOC (<1%) 1 file
*.proto447 LOC (<1%) 1 file
*.pxd363 LOC (<1%) 7 files
*.in56 LOC (<1%) 2 files
*.toml33 LOC (<1%) 1 file
*.cfg13 LOC (<1%) 3 files
*.h1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
orc
q
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*_test[.].*".
  • 6236 files match defined criteria (1,057,520 LOC, 114.4% vs. main code):
    • 5,066 *.java files (759,441 LOC)
    • 494 *.scala files (130,628 LOC)
    • 301 *.xml files (125,956 LOC)
    • 92 *.py files (13,504 LOC)
    • 7 *.orc files (9,506 LOC)
    • 25 *.q files (6,569 LOC)
    • 142 *.sql files (5,382 LOC)
    • 70 *.sh files (5,016 LOC)
    • 20 *.proto files (727 LOC)
    • 11 *.yaml files (521 LOC)
    • 7 *.avsc files (265 LOC)
    • 1 *.cfg files (5 LOC)
  • " *.java" is biggest, containing 71.81% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java759441 LOC (71%) 5,066 files
*.scala130628 LOC (12%) 494 files
*.xml125956 LOC (11%) 301 files
*.py13504 LOC (1%) 92 files
*.orc9506 LOC (<1%) 7 files
*.q6569 LOC (<1%) 25 files
*.sql5382 LOC (<1%) 142 files
*.sh5016 LOC (<1%) 70 files
*.proto727 LOC (<1%) 20 files
*.yaml521 LOC (<1%) 11 files
*.avsc265 LOC (<1%) 7 files
*.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/.*".
  • 41 files match defined criteria (999 LOC, 0.1% vs. main code). All matches are in *.java files.


*.java999 LOC (100%) 41 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
  • 157 files match defined criteria (18,635 LOC, 2.0% vs. main code):
    • 117 *.xml files (16,489 LOC)
    • 40 *.sh files (2,146 LOC)
  • " *.xml" is biggest, containing 88.48% of LOC.
  • " *.sh" is smallest, containing 11.52% of LOC.


*.xml16489 LOC (88%) 117 files
*.sh2146 LOC (11%) 40 files
Other Code
properties
txt
ini
Explore:   circles  |  sunburst
  • 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 ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
  • 530 files match defined criteria (106,413 LOC, 11.5% vs. main code):
    • 282 *.json files (93,846 LOC)
    • 63 *.java files (4,765 LOC)
    • 115 *.properties files (3,176 LOC)
    • 29 *.py files (1,604 LOC)
    • 3 *.svg files (1,482 LOC)
    • 18 *.md files (932 LOC)
    • 15 *.txt files (262 LOC)
    • 1 *.xml files (255 LOC)
    • 1 *.ini files (51 LOC)
    • 3 *.scala files (40 LOC)
  • " *.json" is biggest, containing 88.19% of LOC.
  • " *.scala" is smallest, containing 0.04% of LOC.


*.json93846 LOC (88%) 282 files
*.java4765 LOC (4%) 63 files
*.properties3176 LOC (2%) 115 files
*.py1604 LOC (1%) 29 files
*.svg1482 LOC (1%) 3 files
*.md932 LOC (<1%) 18 files
*.txt262 LOC (<1%) 15 files
*.xml255 LOC (<1%) 1 file
*.ini51 LOC (<1%) 1 file
*.scala40 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:47