Skip to content

[Linter] Report a warning when a field's access is constant, public, and the type mutable #429

Open
@turbolent

Description

@turbolent

Issue To Be Solved

It's a bad practice and often unintentional to expose mutable state indirectly by having a constant field which is public, and the type is mutable.

Eventually we might want to forbid this, i.e. make it an error.

Suggested Solution

  • Report a warning when a field is constant, public, and the type mutable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions