apache / incubator-graphar
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
proto
clang-format
jinja2
gitmodules
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.

main28116 LOC (72%) 238 files
test5378 LOC (13%) 47 files
generated0 LOC (0%) 0 files
build and deployment1700 LOC (4%) 24 files
other3503 LOC (9%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
jinja2
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 238 files match defined criteria (28,116 LOC, 100.0% vs. main code):
    • 65 *.scala files (7,563 LOC)
    • 21 *.cc files (6,158 LOC)
    • 16 *.py files (5,489 LOC)
    • 86 *.java files (4,301 LOC)
    • 33 *.h files (3,833 LOC)
    • 4 *.cmake files (276 LOC)
    • 6 *.proto files (251 LOC)
    • 3 *.toml files (183 LOC)
    • 1 *.jinja2 files (34 LOC)
    • 2 *.yaml files (17 LOC)
    • 1 *.html files (11 LOC)
  • " *.scala" is biggest, containing 26.9% of LOC.
  • " *.html" is smallest, containing 0.04% of LOC.


*.scala7563 LOC (26%) 65 files
*.cc6158 LOC (21%) 21 files
*.py5489 LOC (19%) 16 files
*.java4301 LOC (15%) 86 files
*.h3833 LOC (13%) 33 files
*.cmake276 LOC (<1%) 4 files
*.proto251 LOC (<1%) 6 files
*.toml183 LOC (<1%) 3 files
*.jinja234 LOC (<1%) 1 file
*.yaml17 LOC (<1%) 2 files
*.html11 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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 47 files match defined criteria (5,378 LOC, 19.1% vs. main code):
    • 7 *.cc files (1,947 LOC)
    • 20 *.java files (1,403 LOC)
    • 10 *.scala files (1,196 LOC)
    • 9 *.py files (810 LOC)
    • 1 *.h files (22 LOC)
  • " *.cc" is biggest, containing 36.2% of LOC.
  • " *.h" is smallest, containing 0.41% of LOC.


*.cc1947 LOC (36%) 7 files
*.java1403 LOC (26%) 20 files
*.scala1196 LOC (22%) 10 files
*.py810 LOC (15%) 9 files
*.h22 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/build[.]xml".
  • 24 files match defined criteria (1,700 LOC, 6.0% vs. main code):
    • 10 *.xml files (1,583 LOC)
    • 14 *.sh files (117 LOC)
  • " *.xml" is biggest, containing 93.12% of LOC.
  • " *.sh" is smallest, containing 6.88% of LOC.


*.xml1583 LOC (93%) 10 files
*.sh117 LOC (6%) 14 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 38 files match defined criteria (3,503 LOC, 12.5% vs. main code):
    • 16 *.cc files (1,579 LOC)
    • 12 *.md files (1,084 LOC)
    • 8 *.txt files (751 LOC)
    • 1 *.json files (53 LOC)
    • 1 *.h files (36 LOC)
  • " *.cc" is biggest, containing 45.08% of LOC.
  • " *.h" is smallest, containing 1.03% of LOC.


*.cc1579 LOC (45%) 16 files
*.md1084 LOC (30%) 12 files
*.txt751 LOC (21%) 8 files
*.json53 LOC (1%) 1 file
*.h36 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:40