debasishg/tradeio
39.2
Weak · 21 September 2026
4.7k
lines of production code
Scala
primary language
4
measurements over time
What this system is
This system is a Scala-based trading application that manages accounts, instruments, and trade execution. It provides HTTP endpoints for account management, trade generation, and user authentication, backed by a Postgres database. The codebase includes comprehensive test coverage for both domain logic and HTTP routes, ensuring reliability in trade processing and data persistence.
Features
Added configuration for code formatting and import organization
The project now includes explicit configuration for code formatting and import organization. A new \.scalafmt.conf\ file defines the Scala 2.13 dialect, 120-column line length, and specific formatting rules. Additionally, a \.scalafix.conf\ file has been added to manage import grouping, merging, and unused import removal. These changes standardize the codebase's style and structure.
(repo-wide) · high confidence
Initial database schema and seed data for core modules
The core module now includes the full database schema (tables for accounts, instruments, orders, trades, users, etc.) and associated seed data. This provides the necessary data structures and initial records for the application's data layer, supporting features like account management, trading, and user authentication.
modules/core/src/main/resources · high confidence
Introduced new domain models, HTTP routes, and authentication infrastructure
Added core domain models for accounts, balances, executions, instruments, and health checks, alongside the HTTP route definitions for account management, balance queries, trade generation, and user authentication (login, logout, user creation). The change also introduces the authentication subsystem, including JWT token generation and expiration handling, as well as a new crypto utility for password encryption and decryption.
modules/core/src/main/scala · high confidence
Test coverage
Added HTTP and resource management test suites; Added in-memory repository interpreters for testing; Added integration tests for HTTP routes; Added integration tests for Postgres repository operations; Added integration tests for trade generation; Added property-based test generators for domain models; Added property-based tests for the secured trade generation route; Added property-based tests for trade generation and validation; Added test coverage for admin routes.
Dependencies
Initial build configuration for the Tradex trading application
The project's build system has been established with a Scala 2.13.12 configuration, defining core and test modules for the 'tradeio' application. This includes standard compiler options, integration test setup using the Weaver framework, and automated import organization via Scalafmt and Scalafix.
(dependencies) · high confidence
Initial project build configuration and dependency management setup
The project's build infrastructure was established by adding the \project/\ directory, which defines all external library dependencies and build tool versions. This includes the SBT version (1.6.2), Scala version (2.13.12), and a comprehensive set of dependencies such as Cats, Http4s, Skunk, and Weave, along with compiler plugins and formatting tools.
project · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 39 → 39 (+0.1)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 100 → 95 (-5.0)
- Architecture 100 → 100 (+0.0)
- Maturity 25 → 23 (-1.7)
- Readiness 34 → 34 (-0.1)
- Security 44 → 52 (+8.1)
- Domain Modelling 79 → 79 (+0.0)
Resolved (11)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- High: security finding (details withheld)
- High: security finding (details withheld)
- No exposed public API
- Secret: jwt (instr.txt)
- Secret: jwt (instr.txt)
- Secret: jwt (instr.txt)
- Test reliability not included
- complexity unreadable for .scala — churn × complexity hotspots could not be measured
- dormant codebase — no living knowledge left to concentrate
New (17)
- Auth.make (cognitive 18) (modules/core/src/main/scala/tradex/domain/repository/Auth.scala)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- Duplicated block (13 lines × 2) (modules/core/src/main/scala/tradex/domain/TradingExchange.scala)
- Duplicated block (16 lines × 2) (modules/core/src/main/scala/tradex/domain/services/trading/trading.scala)
- Exchange.create (cognitive 56) (modules/core/src/main/scala/tradex/domain/TradingExchange.scala)
- Exchange.create (cyclomatic 40) (modules/core/src/main/scala/tradex/domain/TradingExchange.scala)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Leaked secret: high-entropy-secret (instr.txt)
- Medium: security finding (details withheld)
- No ADRs found
- Secret: jwt (instr.txt)
- Secret: jwt (instr.txt)
- Secret: jwt (instr.txt)
- Security.make (cognitive 21) (modules/core/src/main/scala/tradex/domain/modules/Security.scala)
- Trading.make (cognitive 18) (modules/core/src/main/scala/tradex/domain/services/trading/trading.scala)
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
debasishg/tradeio was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 28be2915e4dfc155f02a7a35ad491d25604fd7d3 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-fa71c66cabd8.