Skip to content

flutter_lint should warn uses of method or property starts with debug method in release #185091

Description

@chunhtai
RenderObject object = RenderProxyBox();
object.debugCreator

The code to to access debug method or property like this should be discourage.

There are some exceptions that it "may" be ok to call them

  1. in assert
  2. guarded by if (!kReleaseMode) or if (!kDebugMode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfyi-toolFor the attention of Flutter Tool teamp: flutter_lintsflutter/packages flutter_lintsteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions