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

main19080 LOC (31%) 329 files
test38168 LOC (63%) 304 files
generated0 LOC (0%) 0 files
build and deployment347 LOC (<1%) 1 file
other2923 LOC (4%) 26 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 ".*".
  • 329 files match defined criteria (19,080 LOC, 100.0% vs. main code):
    • 143 *.scala files (11,445 LOC)
    • 138 *.mustache files (6,027 LOC)
    • 5 *.java files (424 LOC)
    • 3 *.sbt files (399 LOC)
    • 25 *.m files (285 LOC)
    • 3 *.py files (246 LOC)
    • 5 *.html files (95 LOC)
    • 2 *.css files (73 LOC)
    • 2 *.thrift files (44 LOC)
    • 2 *.h files (27 LOC)
    • 1 *.bash files (15 LOC)
  • " *.scala" is biggest, containing 59.98% of LOC.
  • " *.bash" is smallest, containing 0.08% of LOC.


*.scala11445 LOC (59%) 143 files
*.mustache6027 LOC (31%) 138 files
*.java424 LOC (2%) 5 files
*.sbt399 LOC (2%) 3 files
*.m285 LOC (1%) 25 files
*.py246 LOC (1%) 3 files
*.html95 LOC (<1%) 5 files
*.css73 LOC (<1%) 2 files
*.thrift44 LOC (<1%) 2 files
*.h27 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.
lua
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 ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 304 files match defined criteria (38,168 LOC, 200.0% vs. main code):
    • 79 *.scala files (18,605 LOC)
    • 27 *.java files (11,869 LOC)
    • 88 *.thrift files (3,125 LOC)
    • 12 *.m files (2,371 LOC)
    • 65 *.swift files (1,531 LOC)
    • 13 *.lua files (262 LOC)
    • 5 *.xml files (205 LOC)
    • 14 *.h files (184 LOC)
    • 1 *.sh files (16 LOC)
  • " *.scala" is biggest, containing 48.75% of LOC.
  • " *.sh" is smallest, containing 0.04% of LOC.


*.scala18605 LOC (48%) 79 files
*.java11869 LOC (31%) 27 files
*.thrift3125 LOC (8%) 88 files
*.m2371 LOC (6%) 12 files
*.swift1531 LOC (4%) 65 files
*.lua262 LOC (<1%) 13 files
*.xml205 LOC (<1%) 5 files
*.h184 LOC (<1%) 14 files
*.sh16 LOC (<1%) 1 file
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".
    • files with paths like ".*/pom[.]xml".
  • 1 file matches defined criteria (347 LOC, 1.8% vs. main code). All matches are in *.xml files.


*.xml347 LOC (100%) 1 file
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 ".*/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".
    • files with paths like ".*/[Dd]emos?/.*".
  • 26 files match defined criteria (2,923 LOC, 15.3% vs. main code):
    • 15 *.rst files (2,380 LOC)
    • 4 *.md files (318 LOC)
    • 1 *.xml files (165 LOC)
    • 2 *.scala files (46 LOC)
    • 1 *.thrift files (9 LOC)
    • 1 *.ini files (3 LOC)
    • 1 *.txt files (1 LOC)
    • 1 *.properties files (1 LOC)
  • " *.rst" is biggest, containing 81.42% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.rst2380 LOC (81%) 15 files
*.md318 LOC (10%) 4 files
*.xml165 LOC (5%) 1 file
*.scala46 LOC (1%) 2 files
*.thrift9 LOC (<1%) 1 file
*.ini3 LOC (<1%) 1 file
*.txt1 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58