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.

main14575 LOC (63%) 226 files
test3768 LOC (16%) 81 files
generated0 LOC (0%) 0 files
build and deployment585 LOC (2%) 4 files
other4079 LOC (17%) 27 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 ".*".
  • 226 files match defined criteria (14,575 LOC, 100.0% vs. main code):
    • 191 *.java files (11,882 LOC)
    • 12 *.tf files (1,337 LOC)
    • 20 *.xml files (1,137 LOC)
    • 1 *.pl files (118 LOC)
    • 1 *.uno files (95 LOC)
    • 1 *.yaml files (6 LOC)
  • " *.java" is biggest, containing 81.52% of LOC.
  • " *.yaml" is smallest, containing 0.04% of LOC.


*.java11882 LOC (81%) 191 files
*.tf1337 LOC (9%) 12 files
*.xml1137 LOC (7%) 20 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]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 81 files match defined criteria (3,768 LOC, 25.9% vs. main code):
    • 16 *.java files (1,865 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.5% of LOC.
  • " *.pl" is smallest, containing 1.8% of LOC.


*.java1865 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 (585 LOC, 4.0% vs. main code):
    • 1 *.xml files (454 LOC)
    • 3 *.sh files (131 LOC)
  • " *.xml" is biggest, containing 77.61% of LOC.
  • " *.sh" is smallest, containing 22.39% of LOC.


*.xml454 LOC (77%) 1 file
*.sh131 LOC (22%) 3 files
Other Code
properties
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
  • 27 files match defined criteria (4,079 LOC, 28.0% vs. main code):
    • 1 *.json files (2,512 LOC)
    • 15 *.md files (1,153 LOC)
    • 3 *.properties files (241 LOC)
    • 6 *.txt files (119 LOC)
    • 1 *.xsd files (44 LOC)
    • 1 *.xml files (10 LOC)
  • " *.json" is biggest, containing 61.58% of LOC.
  • " *.xml" is smallest, containing 0.25% of LOC.


*.json2512 LOC (61%) 1 file
*.md1153 LOC (28%) 15 files
*.properties241 LOC (5%) 3 files
*.txt119 LOC (2%) 6 files
*.xsd44 LOC (1%) 1 file
*.xml10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:14