Skip to content

misleading_variable_name works weirdly #1903

@CleverWild

Description

@CleverWild

It seems that misleading_variable_name starts matching names from the end and only a small part of them. Is this normal behavior? If so, I suggest adding a setting to this lint that allows you to specify which side to start the comparison from.

let up: UpdateSchemePath = path.into_inner(); // negative
let query: UpdateSchemeQuery = query.into_inner(); 
    ^^^^^
// `dropshot::extractor::query` exports a type `Query`, which is not     
// the type of `query` use a name other than `query`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions