spotify / robolectric
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.

main86255 LOC (55%) 787 files
test67787 LOC (43%) 760 files
generated0 LOC (0%) 0 files
build and deployment1384 LOC (<1%) 43 files
other243 LOC (<1%) 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 ".*".
  • 787 files match defined criteria (86,255 LOC, 100.0% vs. main code):
    • 684 *.java files (84,221 LOC)
    • 98 *.xml files (1,433 LOC)
    • 5 *.groovy files (601 LOC)
  • " *.java" is biggest, containing 97.64% of LOC.
  • " *.groovy" is smallest, containing 0.7% of LOC.


*.java84221 LOC (97%) 684 files
*.xml1433 LOC (1%) 98 files
*.groovy601 LOC (<1%) 5 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 ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/src/androidTest/.*".
  • 760 files match defined criteria (67,787 LOC, 78.6% vs. main code):
    • 620 *.java files (65,591 LOC)
    • 138 *.xml files (2,176 LOC)
    • 2 *.gradle files (20 LOC)
  • " *.java" is biggest, containing 96.76% of LOC.
  • " *.gradle" is smallest, containing 0.03% of LOC.


*.java65591 LOC (96%) 620 files
*.xml2176 LOC (3%) 138 files
*.gradle20 LOC (<1%) 2 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 ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 43 files match defined criteria (1,384 LOC, 1.6% vs. main code):
    • 27 *.gradle files (721 LOC)
    • 8 *.sh files (518 LOC)
    • 7 *.xml files (84 LOC)
    • 1 *.bat files (61 LOC)
  • " *.gradle" is biggest, containing 52.1% of LOC.
  • " *.bat" is smallest, containing 4.41% of LOC.


*.gradle721 LOC (52%) 27 files
*.sh518 LOC (37%) 8 files
*.xml84 LOC (6%) 7 files
*.bat61 LOC (4%) 1 file
Other Code
properties
txt
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 ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 19 files match defined criteria (243 LOC, 0.3% vs. main code):
    • 4 *.md files (215 LOC)
    • 8 *.properties files (21 LOC)
    • 7 *.txt files (7 LOC)
  • " *.md" is biggest, containing 88.48% of LOC.
  • " *.txt" is smallest, containing 2.88% of LOC.


*.md215 LOC (88%) 4 files
*.properties21 LOC (8%) 8 files
*.txt7 LOC (2%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:38