felangel / felangel/mocktail

Warning when a registerFallbackValue is never used

Đang mở
#146 0 bình luận 3 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Dart
Star
702
Fork
88
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description**
As a user I would like to get a warning whenever a fallback value has been registered but has never been used.

```dart
void main() {
setUpAll(() {
registerFallbackValue(Foo()); // Should result in a warning since it is never used.
});
}
```

**Possible solutions**
- Runtime warning
- Custom analyser lint rule

**Describe alternatives you've considered**
N/A

**Additional context**
- https://invertase.io/blog/announcing-dart-custom-lint

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.