apache / asterixdb-hyracks
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
ddl
cmd
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.

main113680 LOC (75%) 1,673 files
test26038 LOC (17%) 312 files
generated0 LOC (0%) 0 files
build and deployment3803 LOC (2%) 61 files
other6188 LOC (4%) 65 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1673 files match defined criteria (113,680 LOC, 100.0% vs. main code):
    • 1,651 *.java files (111,580 LOC)
    • 13 *.xml files (1,154 LOC)
    • 3 *.js files (425 LOC)
    • 2 *.css files (388 LOC)
    • 4 *.html files (133 LOC)
  • " *.java" is biggest, containing 98.15% of LOC.
  • " *.html" is smallest, containing 0.12% of LOC.


*.java111580 LOC (98%) 1,651 files
*.xml1154 LOC (1%) 13 files
*.js425 LOC (<1%) 3 files
*.css388 LOC (<1%) 2 files
*.html133 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ddl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
  • 312 files match defined criteria (26,038 LOC, 22.9% vs. main code):
    • 291 *.java files (25,068 LOC)
    • 17 *.xml files (762 LOC)
    • 2 *.ddl files (122 LOC)
    • 1 *.cmd files (56 LOC)
    • 1 *.sh files (30 LOC)
  • " *.java" is biggest, containing 96.27% of LOC.
  • " *.sh" is smallest, containing 0.12% of LOC.


*.java25068 LOC (96%) 291 files
*.xml762 LOC (2%) 17 files
*.ddl122 LOC (<1%) 2 files
*.cmd56 LOC (<1%) 1 file
*.sh30 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 61 files match defined criteria (3,803 LOC, 3.3% vs. main code). All matches are in *.xml files.


*.xml3803 LOC (100%) 61 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 65 files match defined criteria (6,188 LOC, 5.4% vs. main code):
    • 56 *.java files (3,141 LOC)
    • 6 *.txt files (2,889 LOC)
    • 3 *.properties files (158 LOC)
  • " *.java" is biggest, containing 50.76% of LOC.
  • " *.properties" is smallest, containing 2.55% of LOC.


*.java3141 LOC (50%) 56 files
*.txt2889 LOC (46%) 6 files
*.properties158 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:39