apache / drill-test-framework
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
q
e
p
ddl
txt
properties
f
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.

main500115 LOC (79%) 29,021 files
test5671 LOC (<1%) 34 files
generated1 LOC (<1%) 1 file
build and deployment2597 LOC (<1%) 123 files
other118973 LOC (18%) 657 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
e
q
p
ddl
f
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 29021 files match defined criteria (500,115 LOC, 100.0% vs. main code):
    • 10,715 *.e files (376,230 LOC)
    • 4,375 *.sql files (64,887 LOC)
    • 13,719 *.q files (26,334 LOC)
    • 109 *.p files (22,025 LOC)
    • 93 *.ddl files (10,194 LOC)
    • 2 *.py files (309 LOC)
    • 5 *.xml files (72 LOC)
    • 1 *.java files (45 LOC)
    • 1 *.hql files (18 LOC)
    • 1 *.f files (1 LOC)
  • " *.e" is biggest, containing 75.23% of LOC.
  • " *.f" is smallest, containing 0% of LOC.


*.e376230 LOC (75%) 10,715 files
*.sql64887 LOC (12%) 4,375 files
*.q26334 LOC (5%) 13,719 files
*.p22025 LOC (4%) 109 files
*.ddl10194 LOC (2%) 93 files
*.py309 LOC (<1%) 2 files
*.xml72 LOC (<1%) 5 files
*.java45 LOC (<1%) 1 file
*.hql18 LOC (<1%) 1 file
*.f1 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 34 files match defined criteria (5,671 LOC, 1.1% vs. main code). All matches are in *.java files.


*.java5671 LOC (100%) 34 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_generated[.][a-z]+".
  • 1 file matches defined criteria (1 LOC, 0.0% vs. main code). All matches are in *.sql files.


*.sql1 LOC (100%) 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 123 files match defined criteria (2,597 LOC, 0.5% vs. main code):
    • 122 *.sh files (1,977 LOC)
    • 1 *.xml files (620 LOC)
  • " *.sh" is biggest, containing 76.13% of LOC.
  • " *.xml" is smallest, containing 23.87% of LOC.


*.sh1977 LOC (76%) 122 files
*.xml620 LOC (23%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 657 files match defined criteria (118,973 LOC, 23.8% vs. main code):
    • 602 *.json files (73,384 LOC)
    • 47 *.txt files (45,082 LOC)
    • 6 *.md files (470 LOC)
    • 2 *.properties files (37 LOC)
  • " *.json" is biggest, containing 61.68% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.json73384 LOC (61%) 602 files
*.txt45082 LOC (37%) 47 files
*.md470 LOC (<1%) 6 files
*.properties37 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:27