fix: Resolve all dart analyze errors and warnings#6
Conversation
Fixed the following issues reported by dart analyze: 🔴 Errors Fixed: - babel_binance_base.dart: Removed dispose() calls for TestnetSpot and TestnetFuturesUsd classes (they don't have dispose methods)⚠️ Warnings Fixed: - binance_base.dart: Removed unused import 'dart:io' - rate_limiter.dart: Removed unused field '_orderCountResetTime' - token_bucket.dart: Removed unused extension 'clamp' on double - websocket_stream.dart: Added getter for '_lastPongReceived' to expose connection health monitoring Changes: - Removed 2 dispose() calls that were causing errors - Cleaned up unused imports and declarations - Added useful getter lastPongTime for WebSocket health monitoring - All code now passes dart analyze without errors No functionality changes - only code quality improvements.
|
Caution Review failedThe pull request is closed. WalkthroughFive targeted cleanups across the rate-limiting and websocket modules: unused imports removed, unnecessary dispose calls eliminated, a private timestamp field removed from daily order count reset, a utility extension on double removed, and a new public getter added to expose websocket pong timing information. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixed the following issues reported by dart analyze:
🔴 Errors Fixed:
Changes:
No functionality changes - only code quality improvements.
Summary by CodeRabbit
New Features
lastPongTimeproperty to WebSocket connections, providing access to the timestamp of the last received pong messageBreaking Changes
clamp()extension method previously available on double values; applications relying on this utility require updatesRefactor