cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Lint that package names only use `_` / only use `-`

Open epage opened this issue 7 months ago • 2 comments

What it does

Mutually exclusive (restriction) lints to ensure package.name have consistent names

I'm suggesting we add both as we are not currently opinionated on this

Advantage

Help ensure consistency throughout a project

Drawbacks

No response

Example

[package]
name = "foo-bar"

Could be written as:

[package]
name = "foo_bar"

epage avatar May 22 '25 16:05 epage

I think you opened this twice on accident Status: Open. #15584

ofluffydev avatar May 28 '25 07:05 ofluffydev

That one is for feature names while this is for package names.

epage avatar May 28 '25 11:05 epage