apache / kafka
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
cfg
xsl
in
pub
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.

main397157 LOC (38%) 3,535 files
test606782 LOC (59%) 2,445 files
generated0 LOC (0%) 0 files
build and deployment4169 LOC (<1%) 16 files
other20112 LOC (1%) 399 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3535 files match defined criteria (397,157 LOC, 100.0% vs. main code):
    • 3,390 *.java files (366,197 LOC)
    • 112 *.scala files (28,775 LOC)
    • 19 *.py files (1,401 LOC)
    • 3 *.xml files (372 LOC)
    • 6 *.yaml files (209 LOC)
    • 1 *.xsl files (153 LOC)
    • 1 *.rdf files (34 LOC)
    • 3 *.html files (16 LOC)
  • " *.java" is biggest, containing 92.2% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java366197 LOC (92%) 3,390 files
*.scala28775 LOC (7%) 112 files
*.py1401 LOC (<1%) 19 files
*.xml372 LOC (<1%) 3 files
*.yaml209 LOC (<1%) 6 files
*.xsl153 LOC (<1%) 1 file
*.rdf34 LOC (<1%) 1 file
*.html16 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
cfg
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
  • 2445 files match defined criteria (606,782 LOC, 152.8% vs. main code):
    • 2,016 *.java files (505,693 LOC)
    • 252 *.scala files (85,617 LOC)
    • 146 *.py files (14,594 LOC)
    • 25 *.yaml files (771 LOC)
    • 2 *.sh files (81 LOC)
    • 1 *.in files (15 LOC)
    • 2 *.cfg files (10 LOC)
    • 1 *.pub files (1 LOC)
  • " *.java" is biggest, containing 83.34% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.java505693 LOC (83%) 2,016 files
*.scala85617 LOC (14%) 252 files
*.py14594 LOC (2%) 146 files
*.yaml771 LOC (<1%) 25 files
*.sh81 LOC (<1%) 2 files
*.in15 LOC (<1%) 1 file
*.cfg10 LOC (<1%) 2 files
*.pub1 LOC (<1%) 1 file
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 ".*[.]gradle".
    • 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 ".*/pom[.]xml".
  • 16 files match defined criteria (4,169 LOC, 1.0% vs. main code):
    • 4 *.gradle files (3,449 LOC)
    • 9 *.sh files (515 LOC)
    • 3 *.xml files (205 LOC)
  • " *.gradle" is biggest, containing 82.73% of LOC.
  • " *.xml" is smallest, containing 4.92% of LOC.


*.gradle3449 LOC (82%) 4 files
*.sh515 LOC (12%) 9 files
*.xml205 LOC (4%) 3 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/checkstyle[.]xml".
  • 399 files match defined criteria (20,112 LOC, 5.1% vs. main code):
    • 301 *.json files (13,438 LOC)
    • 18 *.xml files (1,861 LOC)
    • 16 *.md files (1,717 LOC)
    • 41 *.properties files (1,601 LOC)
    • 18 *.java files (1,417 LOC)
    • 5 *.txt files (78 LOC)
  • " *.json" is biggest, containing 66.82% of LOC.
  • " *.txt" is smallest, containing 0.39% of LOC.


*.json13438 LOC (66%) 301 files
*.xml1861 LOC (9%) 18 files
*.md1717 LOC (8%) 16 files
*.properties1601 LOC (7%) 41 files
*.java1417 LOC (7%) 18 files
*.txt78 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:27