cargo-toml-lint

Crates.iocargo-toml-lint
lib.rscargo-toml-lint
version0.1.1
sourcesrc
created_at2022-02-21 18:10:40.60905
updated_at2022-05-10 10:14:58.388853
descriptionLinter for Cargo.toml
homepagehttps://github.com/FuelLabs/cargo-toml-lint
repositoryhttps://github.com/FuelLabs/cargo-toml-lint
max_upload_size
id536893
size43,882
(fuel-service-user)

documentation

README

cargo-toml-lint - a linter for Cargo.toml

build crates.io discord

Features:

  • Verify toml syntax
  • Run cargo verify-project
  • Check that [dependencies] and [dev-dependencies] are sorted alphabetically
  • Check that [[test]] are sorted by test name
  • Check all members of top-level object arrays (like) [[test]] are placed contiguously

This is a best-effort linter. Currently custom parsing is really simplified, so it may:

  • Reject some valid files if they are written in some particularly obscure way
  • Accept some files that violate the given linting rules

However, any such issues are considered bugs and a fix PR would be appreciated.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 16

cargo fmt