apache / phoenix
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
properties
proto
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.

main390916 LOC (84%) 2,149 files
test61972 LOC (13%) 338 files
generated0 LOC (0%) 0 files
build and deployment9054 LOC (1%) 36 files
other2814 LOC (<1%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2149 files match defined criteria (390,916 LOC, 100.0% vs. main code):
    • 2,048 *.java files (384,934 LOC)
    • 2 *.g files (1,803 LOC)
    • 16 *.xml files (1,170 LOC)
    • 14 *.js files (960 LOC)
    • 12 *.proto files (764 LOC)
    • 1 *.css files (469 LOC)
    • 43 *.sql files (401 LOC)
    • 12 *.html files (351 LOC)
    • 1 *.py files (64 LOC)
  • " *.java" is biggest, containing 98.47% of LOC.
  • " *.py" is smallest, containing 0.02% of LOC.


*.java384934 LOC (98%) 2,048 files
*.g1803 LOC (<1%) 2 files
*.xml1170 LOC (<1%) 16 files
*.js960 LOC (<1%) 14 files
*.proto764 LOC (<1%) 12 files
*.css469 LOC (<1%) 1 file
*.sql401 LOC (<1%) 43 files
*.html351 LOC (<1%) 12 files
*.py64 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 ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 338 files match defined criteria (61,972 LOC, 15.9% vs. main code):
    • 316 *.java files (59,796 LOC)
    • 12 *.xml files (1,964 LOC)
    • 4 *.js files (135 LOC)
    • 6 *.sql files (77 LOC)
  • " *.java" is biggest, containing 96.49% of LOC.
  • " *.sql" is smallest, containing 0.12% of LOC.


*.java59796 LOC (96%) 316 files
*.xml1964 LOC (3%) 12 files
*.js135 LOC (<1%) 4 files
*.sql77 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 36 files match defined criteria (9,054 LOC, 2.3% vs. main code):
    • 16 *.xml files (5,980 LOC)
    • 20 *.sh files (3,074 LOC)
  • " *.xml" is biggest, containing 66.05% of LOC.
  • " *.sh" is smallest, containing 33.95% of LOC.


*.xml5980 LOC (66%) 16 files
*.sh3074 LOC (33%) 20 files
Other Code
txt
properties
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 ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 53 files match defined criteria (2,814 LOC, 0.7% vs. main code):
    • 13 *.json files (1,243 LOC)
    • 16 *.txt files (512 LOC)
    • 11 *.properties files (365 LOC)
    • 6 *.md files (361 LOC)
    • 4 *.xml files (308 LOC)
    • 3 *.sql files (25 LOC)
  • " *.json" is biggest, containing 44.17% of LOC.
  • " *.sql" is smallest, containing 0.89% of LOC.


*.json1243 LOC (44%) 13 files
*.txt512 LOC (18%) 16 files
*.properties365 LOC (12%) 11 files
*.md361 LOC (12%) 6 files
*.xml308 LOC (10%) 4 files
*.sql25 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:42