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.

main19349 LOC (56%) 196 files
test10992 LOC (32%) 98 files
generated0 LOC (0%) 0 files
build and deployment2834 LOC (8%) 31 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 ".*".
  • 196 files match defined criteria (19,349 LOC, 100.0% vs. main code):
    • 104 *.scala files (11,520 LOC)
    • 71 *.java files (5,802 LOC)
    • 7 *.py files (1,275 LOC)
    • 5 *.js files (364 LOC)
    • 4 *.html files (203 LOC)
    • 1 *.xml files (96 LOC)
    • 1 *.ftl files (51 LOC)
    • 1 *.css files (29 LOC)
    • 1 *.cfg files (6 LOC)
    • 1 *.in files (3 LOC)
  • " *.scala" is biggest, containing 59.54% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.scala11520 LOC (59%) 104 files
*.java5802 LOC (29%) 71 files
*.py1275 LOC (6%) 7 files
*.js364 LOC (1%) 5 files
*.html203 LOC (1%) 4 files
*.xml96 LOC (<1%) 1 file
*.ftl51 LOC (<1%) 1 file
*.css29 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 ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
  • 98 files match defined criteria (10,992 LOC, 56.8% vs. main code):
    • 67 *.scala files (8,308 LOC)
    • 28 *.java files (2,332 LOC)
    • 3 *.py files (352 LOC)
  • " *.scala" is biggest, containing 75.58% of LOC.
  • " *.py" is smallest, containing 3.2% of LOC.


*.scala8308 LOC (75%) 67 files
*.java2332 LOC (21%) 28 files
*.py352 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 ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly[.]xml".
  • 31 files match defined criteria (2,834 LOC, 14.6% vs. main code):
    • 25 *.xml files (2,631 LOC)
    • 6 *.sh files (203 LOC)
  • " *.xml" is biggest, containing 92.84% of LOC.
  • " *.sh" is smallest, containing 7.16% of LOC.


*.xml2631 LOC (92%) 25 files
*.sh203 LOC (7%) 6 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 21 files match defined criteria (911 LOC, 4.7% 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.


2025-05-07 16:58