Skip to content

Lint for Uppercase refs? #22

@clragon

Description

@clragon

Since I started using this package, I find the paradigm of naming Refs with a wider scope than just the current widget with an uppercase name just like types to be compelling.

However, the dart linter of course does not enjoy this.
non_constant_identifier_names will yell at us for declaring:

final MyStuffRef = Ref<MyStuff>();

We could disable this lint app-wide, however that would erase actual violations.

I dont know much about how custom linting logic is added, but are there chances we could have some support from the package / packages / an optional lint rule that allows this style of Ref?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions