apache / cassandra-analytics
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
txt
properties
cql
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.

main47699 LOC (56%) 536 files
test34101 LOC (40%) 239 files
generated0 LOC (0%) 0 files
build and deployment1191 LOC (1%) 25 files
other1815 LOC (2%) 17 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 ".*".
  • 536 files match defined criteria (47,699 LOC, 100.0% vs. main code):
    • 531 *.java files (46,883 LOC)
    • 2 *.xml files (464 LOC)
    • 3 *.avsc files (352 LOC)
  • " *.java" is biggest, containing 98.29% of LOC.
  • " *.avsc" is smallest, containing 0.74% of LOC.


*.java46883 LOC (98%) 531 files
*.xml464 LOC (<1%) 2 files
*.avsc352 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cql
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 ".*/test_.*".
  • 239 files match defined criteria (34,101 LOC, 71.5% vs. main code):
    • 224 *.java files (33,274 LOC)
    • 12 *.avsc files (595 LOC)
    • 1 *.gradle files (114 LOC)
    • 1 *.cql files (92 LOC)
    • 1 *.xml files (26 LOC)
  • " *.java" is biggest, containing 97.57% of LOC.
  • " *.xml" is smallest, containing 0.08% of LOC.


*.java33274 LOC (97%) 224 files
*.avsc595 LOC (1%) 12 files
*.gradle114 LOC (<1%) 1 file
*.cql92 LOC (<1%) 1 file
*.xml26 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".
  • 25 files match defined criteria (1,191 LOC, 2.5% vs. main code):
    • 20 *.gradle files (1,043 LOC)
    • 5 *.sh files (148 LOC)
  • " *.gradle" is biggest, containing 87.57% of LOC.
  • " *.sh" is smallest, containing 12.43% of LOC.


*.gradle1043 LOC (87%) 20 files
*.sh148 LOC (12%) 5 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/config/checkstyle/.*".
    • 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/.*".
  • 17 files match defined criteria (1,815 LOC, 3.8% vs. main code):
    • 9 *.md files (1,344 LOC)
    • 5 *.txt files (282 LOC)
    • 2 *.xml files (145 LOC)
    • 1 *.properties files (44 LOC)
  • " *.md" is biggest, containing 74.05% of LOC.
  • " *.properties" is smallest, containing 2.42% of LOC.


*.md1344 LOC (74%) 9 files
*.txt282 LOC (15%) 5 files
*.xml145 LOC (7%) 2 files
*.properties44 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:49