spotify / confidence-sdk-js
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
mjs
proto
txt
prettierignore
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.

main2943 LOC (36%) 44 files
test1776 LOC (21%) 15 files
generated1077 LOC (13%) 6 files
build and deployment0 LOC (0%) 0 files
other2293 LOC (28%) 45 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 44 files match defined criteria (2,943 LOC, 100.0% vs. main code):
    • 31 *.ts files (2,352 LOC)
    • 4 *.proto files (236 LOC)
    • 1 *.tsx files (206 LOC)
    • 5 *.mjs files (85 LOC)
    • 1 *.cjs files (56 LOC)
    • 2 *.js files (8 LOC)
  • " *.ts" is biggest, containing 79.92% of LOC.
  • " *.js" is smallest, containing 0.27% of LOC.


*.ts2352 LOC (79%) 31 files
*.proto236 LOC (8%) 4 files
*.tsx206 LOC (6%) 1 file
*.mjs85 LOC (2%) 5 files
*.cjs56 LOC (1%) 1 file
*.js8 LOC (<1%) 2 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 15 files match defined criteria (1,776 LOC, 60.3% vs. main code):
    • 13 *.ts files (1,730 LOC)
    • 2 *.js files (46 LOC)
  • " *.ts" is biggest, containing 97.41% of LOC.
  • " *.js" is smallest, containing 2.59% of LOC.


*.ts1730 LOC (97%) 13 files
*.js46 LOC (2%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 6 files match defined criteria (1,077 LOC, 36.6% vs. main code). All matches are in *.ts files.


*.ts1077 LOC (100%) 6 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 45 files match defined criteria (2,293 LOC, 77.9% vs. main code):
    • 18 *.md files (1,160 LOC)
    • 21 *.json files (896 LOC)
    • 3 *.tsx files (175 LOC)
    • 2 *.js files (48 LOC)
    • 1 *.html files (14 LOC)
  • " *.md" is biggest, containing 50.59% of LOC.
  • " *.html" is smallest, containing 0.61% of LOC.


*.md1160 LOC (50%) 18 files
*.json896 LOC (39%) 21 files
*.tsx175 LOC (7%) 3 files
*.js48 LOC (2%) 2 files
*.html14 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:40