apache / geode
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
xsd
ini
cfg
mod
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.

main545415 LOC (77%) 4,431 files
test122183 LOC (17%) 1,234 files
generated0 LOC (0%) 0 files
build and deployment9052 LOC (1%) 130 files
other22990 LOC (3%) 250 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4431 files match defined criteria (545,415 LOC, 100.0% vs. main code):
    • 3,665 *.java files (473,904 LOC)
    • 541 *.erb files (44,454 LOC)
    • 25 *.js files (12,748 LOC)
    • 117 *.xml files (5,267 LOC)
    • 21 *.css files (4,658 LOC)
    • 29 *.html files (2,874 LOC)
    • 10 *.go files (737 LOC)
    • 16 *.groovy files (574 LOC)
    • 1 *.py files (133 LOC)
    • 2 *.cfg files (46 LOC)
    • 3 *.scss files (17 LOC)
    • 1 *.rb files (3 LOC)
  • " *.java" is biggest, containing 86.89% of LOC.
  • " *.rb" is smallest, containing 0% of LOC.


*.java473904 LOC (86%) 3,665 files
*.erb44454 LOC (8%) 541 files
*.js12748 LOC (2%) 25 files
*.xml5267 LOC (<1%) 117 files
*.css4658 LOC (<1%) 21 files
*.html2874 LOC (<1%) 29 files
*.go737 LOC (<1%) 10 files
*.groovy574 LOC (<1%) 16 files
*.py133 LOC (<1%) 1 file
*.cfg46 LOC (<1%) 2 files
*.scss17 LOC (<1%) 3 files
*.rb3 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 ".*[-]test[-].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
  • 1234 files match defined criteria (122,183 LOC, 22.4% vs. main code):
    • 1,162 *.java files (117,180 LOC)
    • 60 *.xml files (4,184 LOC)
    • 7 *.sh files (435 LOC)
    • 3 *.go files (353 LOC)
    • 1 *.gradle files (18 LOC)
    • 1 *.groovy files (13 LOC)
  • " *.java" is biggest, containing 95.91% of LOC.
  • " *.groovy" is smallest, containing 0.01% of LOC.


*.java117180 LOC (95%) 1,162 files
*.xml4184 LOC (3%) 60 files
*.sh435 LOC (<1%) 7 files
*.go353 LOC (<1%) 3 files
*.gradle18 LOC (<1%) 1 file
*.groovy13 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 130 files match defined criteria (9,052 LOC, 1.7% vs. main code):
    • 87 *.gradle files (4,510 LOC)
    • 42 *.sh files (4,474 LOC)
    • 1 *.bat files (68 LOC)
  • " *.gradle" is biggest, containing 49.82% of LOC.
  • " *.bat" is smallest, containing 0.75% of LOC.


*.gradle4510 LOC (49%) 87 files
*.sh4474 LOC (49%) 42 files
*.bat68 LOC (<1%) 1 file
Other Code
txt
properties
ini
xsd
mod
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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]ini".
  • 250 files match defined criteria (22,990 LOC, 4.2% vs. main code):
    • 122 *.txt files (13,608 LOC)
    • 36 *.properties files (4,908 LOC)
    • 33 *.json files (2,155 LOC)
    • 34 *.java files (1,324 LOC)
    • 16 *.md files (783 LOC)
    • 4 *.ini files (132 LOC)
    • 1 *.sh files (47 LOC)
    • 3 *.xsd files (31 LOC)
    • 1 *.mod files (2 LOC)
  • " *.txt" is biggest, containing 59.19% of LOC.
  • " *.mod" is smallest, containing 0.01% of LOC.


*.txt13608 LOC (59%) 122 files
*.properties4908 LOC (21%) 36 files
*.json2155 LOC (9%) 33 files
*.java1324 LOC (5%) 34 files
*.md783 LOC (3%) 16 files
*.ini132 LOC (<1%) 4 files
*.sh47 LOC (<1%) 1 file
*.xsd31 LOC (<1%) 3 files
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:50