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

main6778 LOC (52%) 122 files
test4086 LOC (31%) 58 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other2144 LOC (16%) 19 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 ".*".
  • 122 files match defined criteria (6,778 LOC, 100.0% vs. main code):
    • 89 *.scala files (5,158 LOC)
    • 8 *.css files (494 LOC)
    • 10 *.js files (477 LOC)
    • 4 *.py files (260 LOC)
    • 3 *.sbt files (258 LOC)
    • 5 *.html files (95 LOC)
    • 2 *.java files (21 LOC)
    • 1 *.bash files (15 LOC)
  • " *.scala" is biggest, containing 76.1% of LOC.
  • " *.bash" is smallest, containing 0.22% of LOC.


*.scala5158 LOC (76%) 89 files
*.css494 LOC (7%) 8 files
*.js477 LOC (7%) 10 files
*.py260 LOC (3%) 4 files
*.sbt258 LOC (3%) 3 files
*.html95 LOC (1%) 5 files
*.java21 LOC (<1%) 2 files
*.bash15 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[.].*".
  • 58 files match defined criteria (4,086 LOC, 60.3% vs. main code):
    • 55 *.scala files (4,047 LOC)
    • 1 *.java files (37 LOC)
    • 1 *.css files (1 LOC)
    • 1 *.js files (1 LOC)
  • " *.scala" is biggest, containing 99.05% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.scala4047 LOC (99%) 55 files
*.java37 LOC (<1%) 1 file
*.css1 LOC (<1%) 1 file
*.js1 LOC (<1%) 1 file
Other Code
ini
properties
txt
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 ".*[.]properties".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
  • 19 files match defined criteria (2,144 LOC, 31.6% vs. main code):
    • 8 *.rst files (1,830 LOC)
    • 7 *.md files (302 LOC)
    • 1 *.ini files (7 LOC)
    • 2 *.properties files (4 LOC)
    • 1 *.txt files (1 LOC)
  • " *.rst" is biggest, containing 85.35% of LOC.
  • " *.txt" is smallest, containing 0.05% of LOC.


*.rst1830 LOC (85%) 8 files
*.md302 LOC (14%) 7 files
*.ini7 LOC (<1%) 1 file
*.properties4 LOC (<1%) 2 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58