obi1kenobi / cargo-semver-checks

Scan your Rust crate for semver violations.
Apache License 2.0
1.13k stars 71 forks source link

Support lint configuration via CLI flags, similarly to clippy #827

Open obi1kenobi opened 1 month ago

obi1kenobi commented 1 month ago

Describe your use case

If cargo-semver-checks is invoked with an option like --current-rustdoc, then no Cargo.toml manifest is used for checking. Since all lint configuration currently lives in Cargo.toml, that means no lint configuration can be specified in such a use case.

Describe the solution you'd like

Linters like clippy allow setting lint configuration via the CLI. Cargo is about to ship lints in the near future, and may have CLI flags for them as well.

Whatever solution we end up with, we should make sure it is consistent with clippy and cargo so that merging cargo-semver-checks into cargo will be easier.

Alternatives, if applicable

No response

Additional Context

It isn't clear how much value this feature would bring, and whether it's currently blocking any workflows at all.

Interested users should upvote this issue using the 🚀 emoji to signal interest, and offer more details about their use case if that use case is not already captured in an earlier comment by a prior user. If an earlier comment matches your use case as well, please 🚀 it as well.

suaviloquence commented 1 month ago

A couple of notes for the future: