Skip to content

struct-field-names, "why it is bad" section #11716

Open
@rudy-6-4

Description

@rudy-6-4

Description

https://rust-lang.github.io/rust-clippy/master/index.html#/struct_field_names
"
Why it is bad ?
Information common to all struct fields is better represented in the struct name.
"
However having just the name of the class in one field is reported. (as stated in "What it does")

I think it could be 2 separate lint. But in the current state, the "Why it is bad ?" should be made coherent with the "What it does" section, e.g. say why having the class name as prefix/suffix in one of the field is bad or "Field name should have the right amount of information, not less, not more"

Version

No response

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions