apache / hbase
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
proto
txt
properties
cmd
xsl
htaccess
editorconfig
xsd
gitattributes
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.

main423863 LOC (47%) 3,028 files
test387547 LOC (43%) 2,457 files
generated29856 LOC (3%) 57 files
build and deployment15685 LOC (1%) 85 files
other32294 LOC (3%) 105 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
xsl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3028 files match defined criteria (423,863 LOC, 100.0% vs. main code):
    • 2,656 *.java files (377,345 LOC)
    • 201 *.rb files (11,948 LOC)
    • 29 *.xml files (6,688 LOC)
    • 58 *.proto files (6,550 LOC)
    • 15 *.py files (5,541 LOC)
    • 3 *.h files (5,487 LOC)
    • 34 *.jsp files (4,474 LOC)
    • 2 *.php files (1,590 LOC)
    • 4 *.cpp files (1,347 LOC)
    • 2 *.pm files (1,152 LOC)
    • 2 *.thrift files (820 LOC)
    • 1 *.pl files (190 LOC)
    • 2 *.css files (185 LOC)
    • 2 *.js files (107 LOC)
    • 3 *.xsl files (102 LOC)
    • 1 *.c files (94 LOC)
    • 8 *.html files (92 LOC)
    • 1 *.cmd files (72 LOC)
    • 1 *.rdf files (41 LOC)
    • 1 *.pp files (21 LOC)
    • 2 *.yaml files (17 LOC)
  • " *.java" is biggest, containing 89.03% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.java377345 LOC (89%) 2,656 files
*.rb11948 LOC (2%) 201 files
*.xml6688 LOC (1%) 29 files
*.proto6550 LOC (1%) 58 files
*.py5541 LOC (1%) 15 files
*.h5487 LOC (1%) 3 files
*.jsp4474 LOC (1%) 34 files
*.php1590 LOC (<1%) 2 files
*.cpp1347 LOC (<1%) 4 files
*.pm1152 LOC (<1%) 2 files
*.thrift820 LOC (<1%) 2 files
*.pl190 LOC (<1%) 1 file
*.css185 LOC (<1%) 2 files
*.js107 LOC (<1%) 2 files
*.xsl102 LOC (<1%) 3 files
*.c94 LOC (<1%) 1 file
*.html92 LOC (<1%) 8 files
*.cmd72 LOC (<1%) 1 file
*.rdf41 LOC (<1%) 1 file
*.pp21 LOC (<1%) 1 file
*.yaml17 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/tests_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_tests[.].*".
  • 2457 files match defined criteria (387,547 LOC, 91.4% vs. main code):
    • 2,377 *.java files (379,537 LOC)
    • 26 *.rb files (4,229 LOC)
    • 34 *.xml files (2,625 LOC)
    • 10 *.proto files (382 LOC)
    • 2 *.py files (280 LOC)
    • 3 *.sh files (271 LOC)
    • 1 *.html files (179 LOC)
    • 2 *.jsp files (42 LOC)
    • 2 *.css files (2 LOC)
  • " *.java" is biggest, containing 97.93% of LOC.
  • " *.css" is smallest, containing 0% of LOC.


*.java379537 LOC (97%) 2,377 files
*.rb4229 LOC (1%) 26 files
*.xml2625 LOC (<1%) 34 files
*.proto382 LOC (<1%) 10 files
*.py280 LOC (<1%) 2 files
*.sh271 LOC (<1%) 3 files
*.html179 LOC (<1%) 1 file
*.jsp42 LOC (<1%) 2 files
*.css2 LOC (<1%) 2 files
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/.*".
  • 57 files match defined criteria (29,856 LOC, 7.0% vs. main code). All matches are in *.java files.


*.java29856 LOC (100%) 57 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 85 files match defined criteria (15,685 LOC, 3.7% vs. main code):
    • 53 *.xml files (11,327 LOC)
    • 32 *.sh files (4,358 LOC)
  • " *.xml" is biggest, containing 72.22% of LOC.
  • " *.sh" is smallest, containing 27.78% of LOC.


*.xml11327 LOC (72%) 53 files
*.sh4358 LOC (27%) 32 files
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 105 files match defined criteria (32,294 LOC, 7.6% vs. main code):
    • 62 *.adoc files (23,953 LOC)
    • 16 *.txt files (5,408 LOC)
    • 9 *.md files (1,005 LOC)
    • 10 *.properties files (816 LOC)
    • 1 *.css files (397 LOC)
    • 3 *.svg files (396 LOC)
    • 1 *.xsd files (169 LOC)
    • 2 *.xml files (105 LOC)
    • 1 *.py files (45 LOC)
  • " *.adoc" is biggest, containing 74.17% of LOC.
  • " *.py" is smallest, containing 0.14% of LOC.


*.adoc23953 LOC (74%) 62 files
*.txt5408 LOC (16%) 16 files
*.md1005 LOC (3%) 9 files
*.properties816 LOC (2%) 10 files
*.css397 LOC (1%) 1 file
*.svg396 LOC (1%) 3 files
*.xsd169 LOC (<1%) 1 file
*.xml105 LOC (<1%) 2 files
*.py45 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:43