twitter / finatra
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
ini
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.

main14208 LOC (22%) 327 files
test31509 LOC (50%) 515 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other17265 LOC (27%) 182 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 ".*".
  • 327 files match defined criteria (14,208 LOC, 100.0% vs. main code):
    • 277 *.scala files (12,118 LOC)
    • 4 *.sbt files (1,187 LOC)
    • 36 *.java files (509 LOC)
    • 4 *.py files (261 LOC)
    • 4 *.html files (52 LOC)
    • 1 *.css files (51 LOC)
    • 1 *.bash files (30 LOC)
  • " *.scala" is biggest, containing 85.29% of LOC.
  • " *.bash" is smallest, containing 0.21% of LOC.


*.scala12118 LOC (85%) 277 files
*.sbt1187 LOC (8%) 4 files
*.java509 LOC (3%) 36 files
*.py261 LOC (1%) 4 files
*.html52 LOC (<1%) 4 files
*.css51 LOC (<1%) 1 file
*.bash30 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 515 files match defined criteria (31,509 LOC, 221.8% vs. main code):
    • 421 *.scala files (28,950 LOC)
    • 71 *.java files (2,272 LOC)
    • 12 *.thrift files (208 LOC)
    • 8 *.mustache files (62 LOC)
    • 1 *.xml files (15 LOC)
    • 2 *.html files (2 LOC)
  • " *.scala" is biggest, containing 91.88% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.scala28950 LOC (91%) 421 files
*.java2272 LOC (7%) 71 files
*.thrift208 LOC (<1%) 12 files
*.mustache62 LOC (<1%) 8 files
*.xml15 LOC (<1%) 1 file
*.html2 LOC (<1%) 2 files
Other Code
ini
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 182 files match defined criteria (17,265 LOC, 121.5% vs. main code):
    • 57 *.rst files (13,208 LOC)
    • 50 *.scala files (1,971 LOC)
    • 35 *.java files (1,067 LOC)
    • 14 *.md files (614 LOC)
    • 3 *.html files (198 LOC)
    • 11 *.xml files (156 LOC)
    • 1 *.thrift files (18 LOC)
    • 1 *.sh files (12 LOC)
    • 2 *.ini files (10 LOC)
    • 4 *.txt files (5 LOC)
    • 1 *.mustache files (3 LOC)
    • 2 *.json files (2 LOC)
    • 1 *.properties files (1 LOC)
  • " *.rst" is biggest, containing 76.5% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.rst13208 LOC (76%) 57 files
*.scala1971 LOC (11%) 50 files
*.java1067 LOC (6%) 35 files
*.md614 LOC (3%) 14 files
*.html198 LOC (1%) 3 files
*.xml156 LOC (<1%) 11 files
*.thrift18 LOC (<1%) 1 file
*.sh12 LOC (<1%) 1 file
*.ini10 LOC (<1%) 2 files
*.txt5 LOC (<1%) 4 files
*.mustache3 LOC (<1%) 1 file
*.json2 LOC (<1%) 2 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58