spotify / android-sdk
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
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.

main2253 LOC (18%) 37 files
test0 LOC (0%) 0 files
generated7913 LOC (64%) 31 files
build and deployment326 LOC (2%) 11 files
other1741 LOC (14%) 12 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 ".*".
  • 37 files match defined criteria (2,253 LOC, 100.0% vs. main code):
    • 2 *.css files (953 LOC)
    • 30 *.xml files (750 LOC)
    • 3 *.js files (417 LOC)
    • 1 *.java files (126 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.css" is biggest, containing 42.3% of LOC.
  • " *.yaml" is smallest, containing 0.31% of LOC.


*.css953 LOC (42%) 2 files
*.xml750 LOC (33%) 30 files
*.js417 LOC (18%) 3 files
*.java126 LOC (5%) 1 file
*.yaml7 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 31 files match defined criteria (7,913 LOC, 351.2% vs. main code). All matches are in *.html files.


*.html7913 LOC (100%) 31 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 11 files match defined criteria (326 LOC, 14.5% vs. main code):
    • 6 *.gradle files (182 LOC)
    • 4 *.xml files (83 LOC)
    • 1 *.bat files (61 LOC)
  • " *.gradle" is biggest, containing 55.83% of LOC.
  • " *.bat" is smallest, containing 18.71% of LOC.


*.gradle182 LOC (55%) 6 files
*.xml83 LOC (25%) 4 files
*.bat61 LOC (18%) 1 file
Other Code
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 ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 12 files match defined criteria (1,741 LOC, 77.3% vs. main code):
    • 1 *.java files (698 LOC)
    • 2 *.kt files (690 LOC)
    • 8 *.md files (340 LOC)
    • 1 *.properties files (13 LOC)
  • " *.java" is biggest, containing 40.09% of LOC.
  • " *.properties" is smallest, containing 0.75% of LOC.


*.java698 LOC (40%) 1 file
*.kt690 LOC (39%) 2 files
*.md340 LOC (19%) 8 files
*.properties13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:38