2 releases

0.1.1 May 10, 2022
0.1.0 Feb 21, 2022

#516 in Cargo plugins

Download history 66/week @ 2024-03-13 118/week @ 2024-03-20 78/week @ 2024-03-27 80/week @ 2024-04-03 101/week @ 2024-04-10 68/week @ 2024-04-17 94/week @ 2024-04-24 116/week @ 2024-05-01 123/week @ 2024-05-08 150/week @ 2024-05-15 90/week @ 2024-05-22 98/week @ 2024-05-29 111/week @ 2024-06-05 108/week @ 2024-06-12 76/week @ 2024-06-19 140/week @ 2024-06-26

458 downloads per month

Apache-2.0 OR MIT

14KB
235 lines

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.

Dependencies

~3.5MB
~68K SLoC