Remove unused code from tests#104550
Conversation
|
Regarding the dead code this tool found in tests: Ideally, we'd want to avoid accumulating this and there are a couple of lint proposals that would help: dart-lang/sdk#57824, dart-lang/sdk#57580, dart-lang/sdk#58292. I believe, any of these would have avoided the dead code from making (or remaining) in the repository. (cc @pq) |
|
This is pretty amazing. Nice. Thanks for sharing. And cheers to the |
|
@goderbauer hi, co-author of Dart Code Metrics here 🙂. So happy to see that the tool helped find and remove unused code! Could you please share more details about the false-positives part? If you don't think this PR is a great place to discuss it, feel free to open an issue here https://github.com/dart-code-checker/dart-code-metrics/issues/new/choose
Thank you! ❤️ |

The dead code was found by running
dart run dart_code_metrics:metrics check-unused-code testfrom https://pub.dev/packages/dart_code_metrics inpackages/flutter.Other notes about the tool: