apache / iotdb
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
pt
csproj
gitmodules
cmd
gitattributes
xsl
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.

main639416 LOC (60%) 5,298 files
test401074 LOC (37%) 1,418 files
generated0 LOC (0%) 0 files
build and deployment14087 LOC (1%) 131 files
other5647 LOC (<1%) 57 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 ".*".
  • 5298 files match defined criteria (639,416 LOC, 100.0% vs. main code):
    • 5,152 *.java files (615,065 LOC)
    • 68 *.py files (7,805 LOC)
    • 5 *.g4 files (4,048 LOC)
    • 8 *.cpp files (3,606 LOC)
    • 7 *.thrift files (2,759 LOC)
    • 26 *.xml files (1,886 LOC)
    • 11 *.ftl files (1,484 LOC)
    • 8 *.h files (1,384 LOC)
    • 4 *.yaml files (698 LOC)
    • 2 *.groovy files (172 LOC)
    • 2 *.c files (155 LOC)
    • 1 *.rdf files (142 LOC)
    • 2 *.toml files (139 LOC)
    • 1 *.cs files (54 LOC)
    • 1 *.xsl files (19 LOC)
  • " *.java" is biggest, containing 96.19% of LOC.
  • " *.xsl" is smallest, containing 0% of LOC.


*.java615065 LOC (96%) 5,152 files
*.py7805 LOC (1%) 68 files
*.g44048 LOC (<1%) 5 files
*.cpp3606 LOC (<1%) 8 files
*.thrift2759 LOC (<1%) 7 files
*.xml1886 LOC (<1%) 26 files
*.ftl1484 LOC (<1%) 11 files
*.h1384 LOC (<1%) 8 files
*.yaml698 LOC (<1%) 4 files
*.groovy172 LOC (<1%) 2 files
*.c155 LOC (<1%) 2 files
*.rdf142 LOC (<1%) 1 file
*.toml139 LOC (<1%) 2 files
*.cs54 LOC (<1%) 1 file
*.xsl19 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pt
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_.*".
  • 1418 files match defined criteria (401,074 LOC, 62.7% vs. main code):
    • 1,376 *.java files (389,310 LOC)
    • 24 *.py files (9,942 LOC)
    • 10 *.xml files (1,184 LOC)
    • 4 *.cpp files (592 LOC)
    • 2 *.sh files (34 LOC)
    • 1 *.pt files (7 LOC)
    • 1 *.yaml files (5 LOC)
  • " *.java" is biggest, containing 97.07% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.java389310 LOC (97%) 1,376 files
*.py9942 LOC (2%) 24 files
*.xml1184 LOC (<1%) 10 files
*.cpp592 LOC (<1%) 4 files
*.sh34 LOC (<1%) 2 files
*.pt7 LOC (<1%) 1 file
*.yaml5 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
  • 131 files match defined criteria (14,087 LOC, 2.2% vs. main code):
    • 48 *.xml files (7,207 LOC)
    • 36 *.bat files (3,463 LOC)
    • 46 *.sh files (3,397 LOC)
    • 1 *.csproj files (20 LOC)
  • " *.xml" is biggest, containing 51.16% of LOC.
  • " *.csproj" is smallest, containing 0.14% of LOC.


*.xml7207 LOC (51%) 48 files
*.bat3463 LOC (24%) 36 files
*.sh3397 LOC (24%) 46 files
*.csproj20 LOC (<1%) 1 file
Other Code
properties
txt
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
  • 57 files match defined criteria (5,647 LOC, 0.9% vs. main code):
    • 33 *.md files (4,398 LOC)
    • 15 *.properties files (608 LOC)
    • 2 *.xml files (242 LOC)
    • 6 *.txt files (231 LOC)
    • 1 *.json files (168 LOC)
  • " *.md" is biggest, containing 77.88% of LOC.
  • " *.json" is smallest, containing 2.98% of LOC.


*.md4398 LOC (77%) 33 files
*.properties608 LOC (10%) 15 files
*.xml242 LOC (4%) 2 files
*.txt231 LOC (4%) 6 files
*.json168 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:47