twitter / scalding
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
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.

main46579 LOC (60%) 403 files
test24917 LOC (32%) 176 files
generated0 LOC (0%) 0 files
build and deployment28 LOC (<1%) 2 files
other5582 LOC (7%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 403 files match defined criteria (46,579 LOC, 100.0% vs. main code):
    • 354 *.scala files (41,556 LOC)
    • 37 *.java files (3,054 LOC)
    • 10 *.rb files (1,278 LOC)
    • 2 *.sbt files (691 LOC)
  • " *.scala" is biggest, containing 89.22% of LOC.
  • " *.sbt" is smallest, containing 1.48% of LOC.


*.scala41556 LOC (89%) 354 files
*.java3054 LOC (6%) 37 files
*.rb1278 LOC (2%) 10 files
*.sbt691 LOC (1%) 2 files
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 ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 176 files match defined criteria (24,917 LOC, 53.5% vs. main code):
    • 152 *.scala files (22,819 LOC)
    • 12 *.java files (1,427 LOC)
    • 5 *.thrift files (557 LOC)
    • 7 *.sh files (114 LOC)
  • " *.scala" is biggest, containing 91.58% of LOC.
  • " *.sh" is smallest, containing 0.46% of LOC.


*.scala22819 LOC (91%) 152 files
*.java1427 LOC (5%) 12 files
*.thrift557 LOC (2%) 5 files
*.sh114 LOC (<1%) 7 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (28 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh28 LOC (100%) 2 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 39 files match defined criteria (5,582 LOC, 12.0% vs. main code):
    • 5 *.json files (3,514 LOC)
    • 15 *.md files (1,586 LOC)
    • 6 *.scala files (446 LOC)
    • 11 *.txt files (25 LOC)
    • 2 *.properties files (11 LOC)
  • " *.json" is biggest, containing 62.95% of LOC.
  • " *.properties" is smallest, containing 0.2% of LOC.


*.json3514 LOC (62%) 5 files
*.md1586 LOC (28%) 15 files
*.scala446 LOC (7%) 6 files
*.txt25 LOC (<1%) 11 files
*.properties11 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58