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

main35832 LOC (46%) 412 files
test32875 LOC (42%) 322 files
generated2448 LOC (3%) 2 files
build and deployment0 LOC (0%) 0 files
other5914 LOC (7%) 45 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 ".*".
  • 412 files match defined criteria (35,832 LOC, 100.0% vs. main code):
    • 368 *.scala files (34,056 LOC)
    • 28 *.java files (704 LOC)
    • 4 *.sbt files (682 LOC)
    • 5 *.html files (156 LOC)
    • 3 *.py files (121 LOC)
    • 1 *.css files (51 LOC)
    • 2 *.xml files (40 LOC)
    • 1 *.bash files (22 LOC)
  • " *.scala" is biggest, containing 95.04% of LOC.
  • " *.bash" is smallest, containing 0.06% of LOC.


*.scala34056 LOC (95%) 368 files
*.java704 LOC (1%) 28 files
*.sbt682 LOC (1%) 4 files
*.html156 LOC (<1%) 5 files
*.py121 LOC (<1%) 3 files
*.css51 LOC (<1%) 1 file
*.xml40 LOC (<1%) 2 files
*.bash22 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[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 322 files match defined criteria (32,875 LOC, 91.7% vs. main code):
    • 234 *.scala files (29,241 LOC)
    • 87 *.java files (3,625 LOC)
    • 1 *.sh files (9 LOC)
  • " *.scala" is biggest, containing 88.95% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.scala29241 LOC (88%) 234 files
*.java3625 LOC (11%) 87 files
*.sh9 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
mako
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "// This file was generated .*".
  • 2 files match defined criteria (2,448 LOC, 6.8% vs. main code):
    • 1 *.scala files (2,356 LOC)
    • 1 *.mako files (92 LOC)
  • " *.scala" is biggest, containing 96.24% of LOC.
  • " *.mako" is smallest, containing 3.76% of LOC.


*.scala2356 LOC (96%) 1 file
*.mako92 LOC (3%) 1 file
Other Code
txt
properties
ini
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 45 files match defined criteria (5,914 LOC, 16.5% vs. main code):
    • 16 *.rst files (5,240 LOC)
    • 9 *.md files (557 LOC)
    • 11 *.txt files (63 LOC)
    • 4 *.json files (29 LOC)
    • 1 *.markdown files (17 LOC)
    • 3 *.properties files (5 LOC)
    • 1 *.ini files (3 LOC)
  • " *.rst" is biggest, containing 88.6% of LOC.
  • " *.ini" is smallest, containing 0.05% of LOC.


*.rst5240 LOC (88%) 16 files
*.md557 LOC (9%) 9 files
*.txt63 LOC (1%) 11 files
*.json29 LOC (<1%) 4 files
*.markdown17 LOC (<1%) 1 file
*.properties5 LOC (<1%) 3 files
*.ini3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58