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.

main9025 LOC (37%) 253 files
test11690 LOC (48%) 154 files
generated0 LOC (0%) 0 files
build and deployment241 LOC (<1%) 1 file
other3337 LOC (13%) 24 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 ".*".
  • 253 files match defined criteria (9,025 LOC, 100.0% vs. main code):
    • 225 *.scala files (8,527 LOC)
    • 15 *.sbt files (214 LOC)
    • 5 *.py files (181 LOC)
    • 6 *.java files (50 LOC)
    • 1 *.ipynb files (48 LOC)
    • 1 *.in files (5 LOC)
  • " *.scala" is biggest, containing 94.48% of LOC.
  • " *.in" is smallest, containing 0.06% of LOC.


*.scala8527 LOC (94%) 225 files
*.sbt214 LOC (2%) 15 files
*.py181 LOC (2%) 5 files
*.java50 LOC (<1%) 6 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_.*".
  • 154 files match defined criteria (11,690 LOC, 129.5% vs. main code):
    • 151 *.scala files (11,590 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.


*.scala11590 LOC (99%) 151 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (241 LOC, 2.7% 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 ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 24 files match defined criteria (3,337 LOC, 37.0% vs. main code):
    • 2 *.ipynb files (1,663 LOC)
    • 10 *.txt files (1,218 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 49.84% of LOC.
  • " *.json" is smallest, containing 1.41% of LOC.


*.ipynb1663 LOC (49%) 2 files
*.txt1218 LOC (36%) 10 files
*.md177 LOC (5%) 2 files
*.scala155 LOC (4%) 2 files
*.properties77 LOC (2%) 3 files
*.json47 LOC (1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:12