spotify / confidence-sdk-flutter
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
plist
storyboard
properties
txt
gitmodules
podspec
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.

main920 LOC (53%) 19 files
test47 LOC (2%) 3 files
generated0 LOC (0%) 0 files
build and deployment225 LOC (13%) 11 files
other521 LOC (30%) 14 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 ".*".
  • 19 files match defined criteria (920 LOC, 100.0% vs. main code):
    • 4 *.dart files (384 LOC)
    • 3 *.swift files (235 LOC)
    • 3 *.kt files (216 LOC)
    • 4 *.yaml files (58 LOC)
    • 4 *.xml files (26 LOC)
    • 1 *.h files (1 LOC)
  • " *.dart" is biggest, containing 41.74% of LOC.
  • " *.h" is smallest, containing 0.11% of LOC.


*.dart384 LOC (41%) 4 files
*.swift235 LOC (25%) 3 files
*.kt216 LOC (23%) 3 files
*.yaml58 LOC (6%) 4 files
*.xml26 LOC (2%) 4 files
*.h1 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_.*".
  • 3 files match defined criteria (47 LOC, 5.1% vs. main code):
    • 2 *.dart files (32 LOC)
    • 1 *.kt files (15 LOC)
  • " *.dart" is biggest, containing 68.09% of LOC.
  • " *.kt" is smallest, containing 31.91% of LOC.


*.dart32 LOC (68%) 2 files
*.kt15 LOC (31%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
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 ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]sh".
  • 11 files match defined criteria (225 LOC, 24.5% vs. main code):
    • 5 *.gradle files (139 LOC)
    • 4 *.xml files (43 LOC)
    • 1 *.sh files (26 LOC)
    • 1 *.podspec files (17 LOC)
  • " *.gradle" is biggest, containing 61.78% of LOC.
  • " *.podspec" is smallest, containing 7.56% of LOC.


*.gradle139 LOC (61%) 5 files
*.xml43 LOC (19%) 4 files
*.sh26 LOC (11%) 1 file
*.podspec17 LOC (7%) 1 file
Other Code
plist
storyboard
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 14 files match defined criteria (521 LOC, 56.6% vs. main code):
    • 3 *.json files (216 LOC)
    • 4 *.md files (147 LOC)
    • 4 *.plist files (91 LOC)
    • 2 *.storyboard files (64 LOC)
    • 1 *.properties files (3 LOC)
  • " *.json" is biggest, containing 41.46% of LOC.
  • " *.properties" is smallest, containing 0.58% of LOC.


*.json216 LOC (41%) 3 files
*.md147 LOC (28%) 4 files
*.plist91 LOC (17%) 4 files
*.storyboard64 LOC (12%) 2 files
*.properties3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:40