solid-software / solid_lints

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

Allow disabling `avoid_returning_widgets` for certain methods #131

Closed danylo-safonov-solid closed 5 months ago

danylo-safonov-solid commented 7 months ago

e.g. InheritedWidget.of, SingleChildWidget.buildWithChild

solid-vovabeloded commented 5 months ago

Let's make the API similar to one we are using for avoid_using_api rule:

     - avoid_returning_widgets:
       exclude:
         - identifier: wait
           class_name: Future
           source: dart:async