apache / incubator-livy
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
properties
txt
gitattributes
in
cfg
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.

main18315 LOC (56%) 194 files
test10444 LOC (32%) 96 files
generated0 LOC (0%) 0 files
build and deployment2907 LOC (8%) 32 files
other911 LOC (2%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 194 files match defined criteria (18,315 LOC, 100.0% vs. main code):
    • 102 *.scala files (10,545 LOC)
    • 71 *.java files (5,797 LOC)
    • 7 *.py files (1,260 LOC)
    • 5 *.js files (330 LOC)
    • 4 *.html files (203 LOC)
    • 1 *.xml files (96 LOC)
    • 1 *.ftl files (51 LOC)
    • 1 *.css files (24 LOC)
    • 1 *.cfg files (6 LOC)
    • 1 *.in files (3 LOC)
  • " *.scala" is biggest, containing 57.58% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.scala10545 LOC (57%) 102 files
*.java5797 LOC (31%) 71 files
*.py1260 LOC (6%) 7 files
*.js330 LOC (1%) 5 files
*.html203 LOC (1%) 4 files
*.xml96 LOC (<1%) 1 file
*.ftl51 LOC (<1%) 1 file
*.css24 LOC (<1%) 1 file
*.cfg6 LOC (<1%) 1 file
*.in3 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 ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 96 files match defined criteria (10,444 LOC, 57.0% vs. main code):
    • 65 *.scala files (7,766 LOC)
    • 28 *.java files (2,332 LOC)
    • 3 *.py files (346 LOC)
  • " *.scala" is biggest, containing 74.36% of LOC.
  • " *.py" is smallest, containing 3.31% of LOC.


*.scala7766 LOC (74%) 65 files
*.java2332 LOC (22%) 28 files
*.py346 LOC (3%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 32 files match defined criteria (2,907 LOC, 15.9% vs. main code):
    • 25 *.xml files (2,626 LOC)
    • 6 *.sh files (203 LOC)
    • 1 *.yml files (78 LOC)
  • " *.xml" is biggest, containing 90.33% of LOC.
  • " *.yml" is smallest, containing 2.68% of LOC.


*.xml2626 LOC (90%) 25 files
*.sh203 LOC (6%) 6 files
*.yml78 LOC (2%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
  • 21 files match defined criteria (911 LOC, 5.0% vs. main code):
    • 11 *.properties files (354 LOC)
    • 3 *.md files (199 LOC)
    • 3 *.xml files (162 LOC)
    • 1 *.scala files (111 LOC)
    • 1 *.java files (62 LOC)
    • 1 *.py files (22 LOC)
    • 1 *.txt files (1 LOC)
  • " *.properties" is biggest, containing 38.86% of LOC.
  • " *.txt" is smallest, containing 0.11% of LOC.


*.properties354 LOC (38%) 11 files
*.md199 LOC (21%) 3 files
*.xml162 LOC (17%) 3 files
*.scala111 LOC (12%) 1 file
*.java62 LOC (6%) 1 file
*.py22 LOC (2%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:34