solid_lints icon indicating copy to clipboard operation
solid_lints copied to clipboard

Update avoid_debug_print suggested fix

Open illia-romanenko opened this issue 1 year ago • 1 comments

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?

illia-romanenko avatar Apr 22 '24 18:04 illia-romanenko

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

solid-vovabeloded avatar Apr 26 '24 15:04 solid-vovabeloded