solid-software / solid_lints

🟧 Lints for Dart and Flutter based on software industry standards and best practices.
Other
36 stars 17 forks source link

Update avoid_debug_print suggested fix #166

Open illia-romanenko opened 2 months ago

illia-romanenko commented 2 months ago

See here more: https://github.com/flutter/flutter/issues/147141 We might want just to provide our own utility to do logging? Or provide better example that just makes sure that debugPrint is guarded by kDebugMode?

solid-vovabeloded commented 2 months ago

So, basically, we should check that the debugPrint call is wrapped into the !kReleaseMode check, otherwise, we should show the warning. Also, we should update the lint name to be avoid_debug_print_in_release