huggingface / better-auth
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
svelte
mdx
mjs
prisma
txt
webmanifest
npmrc
snap
jsonc
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.

main40828 LOC (37%) 287 files
test18932 LOC (17%) 83 files
generated0 LOC (0%) 0 files
build and deployment17 LOC (<1%) 1 file
other49748 LOC (45%) 972 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 287 files match defined criteria (40,828 LOC, 100.0% vs. main code):
    • 285 *.ts files (40,768 LOC)
    • 1 *.sql files (46 LOC)
    • 1 *.jsonc files (14 LOC)
  • " *.ts" is biggest, containing 99.85% of LOC.
  • " *.jsonc" is smallest, containing 0.03% of LOC.


*.ts40768 LOC (99%) 285 files
*.sql46 LOC (<1%) 1 file
*.jsonc14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
prisma
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 ".*/vitest[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]tests/.*".
  • 83 files match defined criteria (18,932 LOC, 46.4% vs. main code):
    • 74 *.ts files (18,239 LOC)
    • 2 *.snap files (351 LOC)
    • 6 *.prisma files (338 LOC)
    • 1 *.sql files (4 LOC)
  • " *.ts" is biggest, containing 96.34% of LOC.
  • " *.sql" is smallest, containing 0.02% of LOC.


*.ts18239 LOC (96%) 74 files
*.snap351 LOC (1%) 2 files
*.prisma338 LOC (1%) 6 files
*.sql4 LOC (<1%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 1 file matches defined criteria (17 LOC, 0.0% vs. main code). All matches are in *.yaml files.


*.yaml17 LOC (100%) 1 file
Other Code
svelte
mjs
txt
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 972 files match defined criteria (49,748 LOC, 121.8% vs. main code):
    • 241 *.tsx files (21,076 LOC)
    • 2 *.yaml files (10,705 LOC)
    • 272 *.vue files (6,691 LOC)
    • 188 *.svelte files (3,667 LOC)
    • 171 *.ts files (3,643 LOC)
    • 47 *.json files (2,471 LOC)
    • 9 *.css files (527 LOC)
    • 16 *.md files (382 LOC)
    • 11 *.js files (357 LOC)
    • 4 *.mjs files (112 LOC)
    • 4 *.txt files (55 LOC)
    • 2 *.webmanifest files (38 LOC)
    • 4 *.svg files (12 LOC)
    • 1 *.html files (12 LOC)
  • " *.tsx" is biggest, containing 42.37% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.tsx21076 LOC (42%) 241 files
*.yaml10705 LOC (21%) 2 files
*.vue6691 LOC (13%) 272 files
*.svelte3667 LOC (7%) 188 files
*.ts3643 LOC (7%) 171 files
*.json2471 LOC (4%) 47 files
*.css527 LOC (1%) 9 files
*.md382 LOC (<1%) 16 files
*.js357 LOC (<1%) 11 files
*.mjs112 LOC (<1%) 4 files
*.txt55 LOC (<1%) 4 files
*.webmanifest38 LOC (<1%) 2 files
*.svg12 LOC (<1%) 4 files
*.html12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:16