apache / tsfile
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
vcxproj
filters
in
adb
plist
mak
ads
cmd
pxd
com
cmakein
clang-format
csproj
gitattributes
mms
sas
s
properties
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.

main78531 LOC (67%) 666 files
test31927 LOC (27%) 220 files
generated1359 LOC (1%) 12 files
build and deployment1511 LOC (1%) 11 files
other3322 LOC (2%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pxd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 666 files match defined criteria (78,531 LOC, 100.0% vs. main code):
    • 451 *.java files (50,061 LOC)
    • 132 *.h files (14,880 LOC)
    • 51 *.cc files (9,821 LOC)
    • 2 *.ftl files (1,356 LOC)
    • 10 *.py files (721 LOC)
    • 3 *.pyx files (633 LOC)
    • 4 *.g4 files (442 LOC)
    • 3 *.pxd files (166 LOC)
    • 1 *.inc files (124 LOC)
    • 2 *.cpp files (107 LOC)
    • 1 *.rdf files (73 LOC)
    • 2 *.xml files (71 LOC)
    • 1 *.cmake files (43 LOC)
    • 2 *.groovy files (32 LOC)
    • 1 *.c files (1 LOC)
  • " *.java" is biggest, containing 63.75% of LOC.
  • " *.c" is smallest, containing 0% of LOC.


*.java50061 LOC (63%) 451 files
*.h14880 LOC (18%) 132 files
*.cc9821 LOC (12%) 51 files
*.ftl1356 LOC (1%) 2 files
*.py721 LOC (<1%) 10 files
*.pyx633 LOC (<1%) 3 files
*.g4442 LOC (<1%) 4 files
*.pxd166 LOC (<1%) 3 files
*.inc124 LOC (<1%) 1 file
*.cpp107 LOC (<1%) 2 files
*.rdf73 LOC (<1%) 1 file
*.xml71 LOC (<1%) 2 files
*.cmake43 LOC (<1%) 1 file
*.groovy32 LOC (<1%) 2 files
*.c1 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 220 files match defined criteria (31,927 LOC, 40.7% vs. main code):
    • 164 *.java files (25,468 LOC)
    • 50 *.cc files (6,054 LOC)
    • 4 *.py files (302 LOC)
    • 1 *.xml files (102 LOC)
    • 1 *.sh files (1 LOC)
  • " *.java" is biggest, containing 79.77% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.java25468 LOC (79%) 164 files
*.cc6054 LOC (18%) 50 files
*.py302 LOC (<1%) 4 files
*.xml102 LOC (<1%) 1 file
*.sh1 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 12 files match defined criteria (1,359 LOC, 1.7% vs. main code):
    • 6 *.cpp files (1,081 LOC)
    • 6 *.h files (278 LOC)
  • " *.cpp" is biggest, containing 79.54% of LOC.
  • " *.h" is smallest, containing 20.46% of LOC.


*.cpp1081 LOC (79%) 6 files
*.h278 LOC (20%) 6 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 ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]csproj".
  • 11 files match defined criteria (1,511 LOC, 1.9% vs. main code):
    • 7 *.xml files (1,324 LOC)
    • 3 *.sh files (147 LOC)
    • 1 *.bat files (40 LOC)
  • " *.xml" is biggest, containing 87.62% of LOC.
  • " *.bat" is smallest, containing 2.65% of LOC.


*.xml1324 LOC (87%) 7 files
*.sh147 LOC (9%) 3 files
*.bat40 LOC (2%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 61 files match defined criteria (3,322 LOC, 4.2% vs. main code):
    • 14 *.md files (1,009 LOC)
    • 11 *.java files (937 LOC)
    • 25 *.txt files (785 LOC)
    • 2 *.xml files (274 LOC)
    • 2 *.c files (119 LOC)
    • 2 *.cpp files (107 LOC)
    • 2 *.h files (40 LOC)
    • 1 *.py files (29 LOC)
    • 1 *.sh files (12 LOC)
    • 1 *.cc files (10 LOC)
  • " *.md" is biggest, containing 30.37% of LOC.
  • " *.cc" is smallest, containing 0.3% of LOC.


*.md1009 LOC (30%) 14 files
*.java937 LOC (28%) 11 files
*.txt785 LOC (23%) 25 files
*.xml274 LOC (8%) 2 files
*.c119 LOC (3%) 2 files
*.cpp107 LOC (3%) 2 files
*.h40 LOC (1%) 2 files
*.py29 LOC (<1%) 1 file
*.sh12 LOC (<1%) 1 file
*.cc10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:54