cargo
cargo copied to clipboard
Lint that package names only use `_` / only use `-`
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"
I think you opened this twice on accident Status: Open. #15584
That one is for feature names while this is for package names.