Skip to content

Question re inconsistent_struct_constructor requirement #11846

Closed
@smoelius

Description

@smoelius

The lint's documentation states (emphasis added):

Checks for struct constructors where all fields are shorthand and the order of the field init shorthand in the constructor is inconsistent with the order in the struct definition.

What is the reason for requiring that all fields be shorthand? On the face of it, I could see value in additionally flagging fields with initializers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions