apache / accumulo-testing
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
uno
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.

main15306 LOC (64%) 228 files
test3773 LOC (15%) 81 files
generated0 LOC (0%) 0 files
build and deployment582 LOC (2%) 4 files
other4179 LOC (17%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
uno
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 228 files match defined criteria (15,306 LOC, 100.0% vs. main code):
    • 194 *.java files (12,497 LOC)
    • 12 *.tf files (1,363 LOC)
    • 19 *.xml files (1,227 LOC)
    • 1 *.pl files (118 LOC)
    • 1 *.uno files (95 LOC)
    • 1 *.yaml files (6 LOC)
  • " *.java" is biggest, containing 81.65% of LOC.
  • " *.yaml" is smallest, containing 0.04% of LOC.


*.java12497 LOC (81%) 194 files
*.tf1363 LOC (8%) 12 files
*.xml1227 LOC (8%) 19 files
*.pl118 LOC (<1%) 1 file
*.uno95 LOC (<1%) 1 file
*.yaml6 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 81 files match defined criteria (3,773 LOC, 24.7% vs. main code):
    • 16 *.java files (1,870 LOC)
    • 32 *.py files (1,140 LOC)
    • 22 *.sh files (494 LOC)
    • 10 *.xml files (201 LOC)
    • 1 *.pl files (68 LOC)
  • " *.java" is biggest, containing 49.56% of LOC.
  • " *.pl" is smallest, containing 1.8% of LOC.


*.java1870 LOC (49%) 16 files
*.py1140 LOC (30%) 32 files
*.sh494 LOC (13%) 22 files
*.xml201 LOC (5%) 10 files
*.pl68 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
  • 4 files match defined criteria (582 LOC, 3.8% vs. main code):
    • 1 *.xml files (450 LOC)
    • 3 *.sh files (132 LOC)
  • " *.xml" is biggest, containing 77.32% of LOC.
  • " *.sh" is smallest, containing 22.68% of LOC.


*.xml450 LOC (77%) 1 file
*.sh132 LOC (22%) 3 files
Other Code
properties
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
  • 28 files match defined criteria (4,179 LOC, 27.3% vs. main code):
    • 1 *.json files (2,512 LOC)
    • 15 *.md files (1,203 LOC)
    • 3 *.properties files (273 LOC)
    • 6 *.txt files (119 LOC)
    • 1 *.xsd files (44 LOC)
    • 2 *.xml files (28 LOC)
  • " *.json" is biggest, containing 60.11% of LOC.
  • " *.xml" is smallest, containing 0.67% of LOC.


*.json2512 LOC (60%) 1 file
*.md1203 LOC (28%) 15 files
*.properties273 LOC (6%) 3 files
*.txt119 LOC (2%) 6 files
*.xsd44 LOC (1%) 1 file
*.xml28 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:07