Skip to content

Lint for redundant package.homepage #15871

@epage

Description

@epage

What it does

Warn if the package.homepage is the same as package.documentation or package.repository

Advantage

Reduce new users filling out each field with redundant or incorrect information

Drawbacks

No response

Example

[package]
homepage = "https://github.com/rust-lang/cargo/"
repository = "https://github.com/rust-lang/cargo/"

Could be written as:

[package]
homepage = "https://github.com/rust-lang/cargo/"
repository = "https://github.com/rust-lang/cargo/"

OR

[package]
homepage = "https://docs.rs/cargo/latest/cargo/"
documentation = "https://docs.rs/cargo/latest/cargo/"

Could be written as:

[package]
documentation = "https://docs.rs/cargo/latest/cargo/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-lintArea: new lintS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions