apache / bookkeeper
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
cfg
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.

main163037 LOC (47%) 1,753 files
test127932 LOC (37%) 775 files
generated92 LOC (<1%) 3 files
build and deployment6700 LOC (1%) 102 files
other42314 LOC (12%) 422 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1753 files match defined criteria (163,037 LOC, 100.0% vs. main code):
    • 1,661 *.java files (156,461 LOC)
    • 39 *.py files (2,424 LOC)
    • 20 *.xml files (1,520 LOC)
    • 13 *.proto files (1,290 LOC)
    • 6 *.js files (377 LOC)
    • 4 *.yaml files (291 LOC)
    • 2 *.c files (241 LOC)
    • 2 *.cpp files (235 LOC)
    • 2 *.hpp files (122 LOC)
    • 1 *.scss files (36 LOC)
    • 1 *.thrift files (20 LOC)
    • 1 *.h files (18 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.java" is biggest, containing 95.97% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java156461 LOC (95%) 1,661 files
*.py2424 LOC (1%) 39 files
*.xml1520 LOC (<1%) 20 files
*.proto1290 LOC (<1%) 13 files
*.js377 LOC (<1%) 6 files
*.yaml291 LOC (<1%) 4 files
*.c241 LOC (<1%) 2 files
*.cpp235 LOC (<1%) 2 files
*.hpp122 LOC (<1%) 2 files
*.scss36 LOC (<1%) 1 file
*.thrift20 LOC (<1%) 1 file
*.h18 LOC (<1%) 1 file
*.cfg2 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 ".*[-]tests[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
  • 775 files match defined criteria (127,932 LOC, 78.5% vs. main code):
    • 693 *.java files (124,071 LOC)
    • 40 *.xml files (1,589 LOC)
    • 11 *.groovy files (993 LOC)
    • 12 *.py files (673 LOC)
    • 18 *.sh files (563 LOC)
    • 1 *.yaml files (43 LOC)
  • " *.java" is biggest, containing 96.98% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.java124071 LOC (96%) 693 files
*.xml1589 LOC (1%) 40 files
*.groovy993 LOC (<1%) 11 files
*.py673 LOC (<1%) 12 files
*.sh563 LOC (<1%) 18 files
*.yaml43 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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 3 files match defined criteria (92 LOC, 0.1% vs. main code). All matches are in *.py files.


*.py92 LOC (100%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/package[.]json".
  • 102 files match defined criteria (6,700 LOC, 4.1% vs. main code):
    • 68 *.xml files (5,909 LOC)
    • 33 *.sh files (674 LOC)
    • 1 *.yaml files (117 LOC)
  • " *.xml" is biggest, containing 88.19% of LOC.
  • " *.yaml" is smallest, containing 1.75% of LOC.


*.xml5909 LOC (88%) 68 files
*.sh674 LOC (10%) 33 files
*.yaml117 LOC (1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 422 files match defined criteria (42,314 LOC, 26.0% vs. main code):
    • 392 *.md files (36,843 LOC)
    • 10 *.txt files (2,826 LOC)
    • 16 *.json files (2,277 LOC)
    • 1 *.xml files (222 LOC)
    • 1 *.py files (66 LOC)
    • 1 *.properties files (62 LOC)
    • 1 *.rst files (18 LOC)
  • " *.md" is biggest, containing 87.07% of LOC.
  • " *.rst" is smallest, containing 0.04% of LOC.


*.md36843 LOC (87%) 392 files
*.txt2826 LOC (6%) 10 files
*.json2277 LOC (5%) 16 files
*.xml222 LOC (<1%) 1 file
*.py66 LOC (<1%) 1 file
*.properties62 LOC (<1%) 1 file
*.rst18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:25