spotify / confidence-sdk-android
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
pro
properties
txt
editorconfig
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.

main3195 LOC (48%) 55 files
test2953 LOC (44%) 18 files
generated0 LOC (0%) 0 files
build and deployment96 LOC (1%) 4 files
other398 LOC (5%) 8 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 55 files match defined criteria (3,195 LOC, 100.0% vs. main code):
    • 40 *.kt files (2,577 LOC)
    • 5 *.kts files (379 LOC)
    • 7 *.xml files (229 LOC)
    • 2 *.yaml files (9 LOC)
    • 1 *.pro files (1 LOC)
  • " *.kt" is biggest, containing 80.66% of LOC.
  • " *.pro" is smallest, containing 0.03% of LOC.


*.kt2577 LOC (80%) 40 files
*.kts379 LOC (11%) 5 files
*.xml229 LOC (7%) 7 files
*.yaml9 LOC (<1%) 2 files
*.pro1 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 ".*/src/androidTest/.*".
  • 18 files match defined criteria (2,953 LOC, 92.4% vs. main code). All matches are in *.kt files.


*.kt2953 LOC (100%) 18 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]bat".
  • 4 files match defined criteria (96 LOC, 3.0% vs. main code):
    • 1 *.bat files (68 LOC)
    • 3 *.xml files (28 LOC)
  • " *.bat" is biggest, containing 70.83% of LOC.
  • " *.xml" is smallest, containing 29.17% of LOC.


*.bat68 LOC (70%) 1 file
*.xml28 LOC (29%) 3 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 8 files match defined criteria (398 LOC, 12.5% vs. main code):
    • 6 *.md files (303 LOC)
    • 1 *.json files (72 LOC)
    • 1 *.properties files (23 LOC)
  • " *.md" is biggest, containing 76.13% of LOC.
  • " *.properties" is smallest, containing 5.78% of LOC.


*.md303 LOC (76%) 6 files
*.json72 LOC (18%) 1 file
*.properties23 LOC (5%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39