Skip to content

Clippy links to master instead of actual version #4167

@Lakelezz

Description

@Lakelezz

Hello everyone,

whenever Clippy suggests a change, it links to further information on its website.
However the link always directs to master, hence if a lint-name changes, the link becomes invalid.

One example is cognitive_complexity.

We can find it on master: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
But not on v0.0.212, as there seems to be a name-change: https://rust-lang.github.io/rust-clippy/v0.0.212/index.html#cyclomatic_complexity

It once linked me: https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity
To no success obviously.

It would be great if Clippy would link to the correct version. E.g. v0.0.212 links to https://rust-lang.github.io/rust-clippy/v0.0.212
I would be willingly to contribute this change too!

Thanks for your time, keep the great work up : )

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