twitter / scala_school
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
textile
properties
txt
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.

main15457 LOC (96%) 74 files
test97 LOC (<1%) 4 files
generated0 LOC (0%) 0 files
build and deployment130 LOC (<1%) 2 files
other374 LOC (2%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
textile
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 74 files match defined criteria (15,457 LOC, 100.0% vs. main code):
    • 50 *.textile files (14,784 LOC)
    • 13 *.scala files (360 LOC)
    • 7 *.html files (270 LOC)
    • 2 *.css files (20 LOC)
    • 1 *.java files (13 LOC)
    • 1 *.thrift files (10 LOC)
  • " *.textile" is biggest, containing 95.65% of LOC.
  • " *.thrift" is smallest, containing 0.06% of LOC.


*.textile14784 LOC (95%) 50 files
*.scala360 LOC (2%) 13 files
*.html270 LOC (1%) 7 files
*.css20 LOC (<1%) 2 files
*.java13 LOC (<1%) 1 file
*.thrift10 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[.].*".
  • 4 files match defined criteria (97 LOC, 0.6% vs. main code):
    • 1 *.java files (55 LOC)
    • 3 *.scala files (42 LOC)
  • " *.java" is biggest, containing 56.7% of LOC.
  • " *.scala" is smallest, containing 43.3% of LOC.


*.java55 LOC (56%) 1 file
*.scala42 LOC (43%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (130 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh130 LOC (100%) 2 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 7 files match defined criteria (374 LOC, 2.4% vs. main code):
    • 1 *.txt files (182 LOC)
    • 4 *.md files (176 LOC)
    • 2 *.properties files (16 LOC)
  • " *.txt" is biggest, containing 48.66% of LOC.
  • " *.properties" is smallest, containing 4.28% of LOC.


*.txt182 LOC (48%) 1 file
*.md176 LOC (47%) 4 files
*.properties16 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58