apache / doris-spark-connector
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
tpl
properties
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.

main3200 LOC (59%) 46 files
test1101 LOC (20%) 11 files
generated0 LOC (0%) 0 files
build and deployment627 LOC (11%) 3 files
other454 LOC (8%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 46 files match defined criteria (3,200 LOC, 100.0% vs. main code):
    • 29 *.java files (2,320 LOC)
    • 16 *.scala files (878 LOC)
    • 1 *.tpl files (2 LOC)
  • " *.java" is biggest, containing 72.5% of LOC.
  • " *.tpl" is smallest, containing 0.06% of LOC.


*.java2320 LOC (72%) 29 files
*.scala878 LOC (27%) 16 files
*.tpl2 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/.*".
  • 11 files match defined criteria (1,101 LOC, 34.4% vs. main code):
    • 7 *.java files (736 LOC)
    • 4 *.scala files (365 LOC)
  • " *.java" is biggest, containing 66.85% of LOC.
  • " *.scala" is smallest, containing 33.15% of LOC.


*.java736 LOC (66%) 7 files
*.scala365 LOC (33%) 4 files
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".
  • 3 files match defined criteria (627 LOC, 19.6% vs. main code):
    • 1 *.xml files (431 LOC)
    • 2 *.sh files (196 LOC)
  • " *.xml" is biggest, containing 68.74% of LOC.
  • " *.sh" is smallest, containing 31.26% of LOC.


*.xml431 LOC (68%) 1 file
*.sh196 LOC (31%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 7 files match defined criteria (454 LOC, 14.2% vs. main code):
    • 3 *.txt files (235 LOC)
    • 4 *.md files (219 LOC)
  • " *.txt" is biggest, containing 51.76% of LOC.
  • " *.md" is smallest, containing 48.24% of LOC.


*.txt235 LOC (51%) 3 files
*.md219 LOC (48%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:22