apache / flink-cdc
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
gitmodules
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.

main103304 LOC (49%) 924 files
test95159 LOC (45%) 487 files
generated0 LOC (0%) 0 files
build and deployment5273 LOC (2%) 47 files
other3811 LOC (1%) 71 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
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 924 files match defined criteria (103,304 LOC, 100.0% vs. main code):
    • 912 *.java files (102,860 LOC)
    • 10 *.rb files (431 LOC)
    • 1 *.xml files (11 LOC)
    • 1 *.yaml files (2 LOC)
  • " *.java" is biggest, containing 99.57% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.java102860 LOC (99%) 912 files
*.rb431 LOC (<1%) 10 files
*.xml11 LOC (<1%) 1 file
*.yaml2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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 ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[-]test[-].*".
  • 487 files match defined criteria (95,159 LOC, 92.1% vs. main code):
    • 372 *.java files (87,487 LOC)
    • 78 *.sql files (4,534 LOC)
    • 6 *.toml files (1,356 LOC)
    • 7 *.xml files (1,062 LOC)
    • 2 *.c files (266 LOC)
    • 10 *.js files (217 LOC)
    • 8 *.yaml files (157 LOC)
    • 4 *.sh files (80 LOC)
  • " *.java" is biggest, containing 91.94% of LOC.
  • " *.sh" is smallest, containing 0.08% of LOC.


*.java87487 LOC (91%) 372 files
*.sql4534 LOC (4%) 78 files
*.toml1356 LOC (1%) 6 files
*.xml1062 LOC (1%) 7 files
*.c266 LOC (<1%) 2 files
*.js217 LOC (<1%) 10 files
*.yaml157 LOC (<1%) 8 files
*.sh80 LOC (<1%) 4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/assembly[.]xml".
  • 47 files match defined criteria (5,273 LOC, 5.1% vs. main code):
    • 42 *.xml files (5,099 LOC)
    • 5 *.sh files (174 LOC)
  • " *.xml" is biggest, containing 96.7% of LOC.
  • " *.sh" is smallest, containing 3.3% of LOC.


*.xml5099 LOC (96%) 42 files
*.sh174 LOC (3%) 5 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 71 files match defined criteria (3,811 LOC, 3.7% vs. main code):
    • 3 *.json files (1,556 LOC)
    • 7 *.txt files (846 LOC)
    • 26 *.properties files (609 LOC)
    • 1 *.xml files (320 LOC)
    • 16 *.java files (212 LOC)
    • 16 *.scala files (138 LOC)
    • 2 *.md files (130 LOC)
  • " *.json" is biggest, containing 40.83% of LOC.
  • " *.md" is smallest, containing 3.41% of LOC.


*.json1556 LOC (40%) 3 files
*.txt846 LOC (22%) 7 files
*.properties609 LOC (15%) 26 files
*.xml320 LOC (8%) 1 file
*.java212 LOC (5%) 16 files
*.scala138 LOC (3%) 16 files
*.md130 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:15