apache / cassandra-sidecar
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.

main45022 LOC (53%) 622 files
test36429 LOC (43%) 323 files
generated0 LOC (0%) 0 files
build and deployment1242 LOC (1%) 20 files
other1716 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 ".*".
  • 622 files match defined criteria (45,022 LOC, 100.0% vs. main code):
    • 616 *.java files (44,420 LOC)
    • 5 *.xml files (433 LOC)
    • 1 *.yaml files (169 LOC)
  • " *.java" is biggest, containing 98.66% of LOC.
  • " *.yaml" is smallest, containing 0.38% of LOC.


*.java44420 LOC (98%) 616 files
*.xml433 LOC (<1%) 5 files
*.yaml169 LOC (<1%) 1 file
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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
  • 323 files match defined criteria (36,429 LOC, 80.9% vs. main code):
    • 292 *.java files (34,574 LOC)
    • 23 *.yaml files (1,640 LOC)
    • 1 *.cql files (60 LOC)
    • 3 *.xml files (57 LOC)
    • 3 *.sh files (50 LOC)
    • 1 *.gradle files (48 LOC)
  • " *.java" is biggest, containing 94.91% of LOC.
  • " *.gradle" is smallest, containing 0.13% of LOC.


*.java34574 LOC (94%) 292 files
*.yaml1640 LOC (4%) 23 files
*.cql60 LOC (<1%) 1 file
*.xml57 LOC (<1%) 3 files
*.sh50 LOC (<1%) 3 files
*.gradle48 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".
  • 20 files match defined criteria (1,242 LOC, 2.8% vs. main code):
    • 16 *.gradle files (1,086 LOC)
    • 4 *.sh files (156 LOC)
  • " *.gradle" is biggest, containing 87.44% of LOC.
  • " *.sh" is smallest, containing 12.56% of LOC.


*.gradle1086 LOC (87%) 16 files
*.sh156 LOC (12%) 4 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 ".*/[Ee]xamples/.*".
    • 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 ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 17 files match defined criteria (1,716 LOC, 3.8% vs. main code):
    • 5 *.md files (696 LOC)
    • 5 *.txt files (359 LOC)
    • 3 *.json files (216 LOC)
    • 1 *.xml files (207 LOC)
    • 1 *.yaml files (202 LOC)
    • 2 *.properties files (36 LOC)
  • " *.md" is biggest, containing 40.56% of LOC.
  • " *.properties" is smallest, containing 2.1% of LOC.


*.md696 LOC (40%) 5 files
*.txt359 LOC (20%) 5 files
*.json216 LOC (12%) 3 files
*.xml207 LOC (12%) 1 file
*.yaml202 LOC (11%) 1 file
*.properties36 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:45