apache / incubator-toree
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
in
gitattributes
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.

main9164 LOC (38%) 254 files
test11610 LOC (49%) 153 files
generated0 LOC (0%) 0 files
build and deployment241 LOC (1%) 1 file
other2507 LOC (10%) 20 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 254 files match defined criteria (9,164 LOC, 100.0% vs. main code):
    • 225 *.scala files (8,271 LOC)
    • 7 *.java files (441 LOC)
    • 15 *.sbt files (218 LOC)
    • 5 *.py files (181 LOC)
    • 1 *.ipynb files (48 LOC)
    • 1 *.in files (5 LOC)
  • " *.scala" is biggest, containing 90.26% of LOC.
  • " *.in" is smallest, containing 0.05% of LOC.


*.scala8271 LOC (90%) 225 files
*.java441 LOC (4%) 7 files
*.sbt218 LOC (2%) 15 files
*.py181 LOC (1%) 5 files
*.ipynb48 LOC (<1%) 1 file
*.in5 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 ".*/test[.].*".
  • 153 files match defined criteria (11,610 LOC, 126.7% vs. main code):
    • 150 *.scala files (11,510 LOC)
    • 1 *.py files (85 LOC)
    • 1 *.java files (8 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.scala" is biggest, containing 99.14% of LOC.
  • " *.yaml" is smallest, containing 0.06% of LOC.


*.scala11510 LOC (99%) 150 files
*.py85 LOC (<1%) 1 file
*.java8 LOC (<1%) 1 file
*.yaml7 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (241 LOC, 2.6% vs. main code). All matches are in *.sh files.


*.sh241 LOC (100%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 20 files match defined criteria (2,507 LOC, 27.4% vs. main code):
    • 2 *.ipynb files (1,663 LOC)
    • 6 *.txt files (388 LOC)
    • 2 *.md files (177 LOC)
    • 2 *.scala files (155 LOC)
    • 3 *.properties files (77 LOC)
    • 5 *.json files (47 LOC)
  • " *.ipynb" is biggest, containing 66.33% of LOC.
  • " *.json" is smallest, containing 1.87% of LOC.


*.ipynb1663 LOC (66%) 2 files
*.txt388 LOC (15%) 6 files
*.md177 LOC (7%) 2 files
*.scala155 LOC (6%) 2 files
*.properties77 LOC (3%) 3 files
*.json47 LOC (1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:57