#linter #cargo-toml

app cargo-toml-lint

Linter for Cargo.toml

2 releases

0.1.1 May 10, 2022
0.1.0 Feb 21, 2022

#559 in Cargo plugins

Download history 74/week @ 2024-07-20 76/week @ 2024-07-27 62/week @ 2024-08-03 57/week @ 2024-08-10 52/week @ 2024-08-17 59/week @ 2024-08-24 52/week @ 2024-08-31 48/week @ 2024-09-07 64/week @ 2024-09-14 89/week @ 2024-09-21 55/week @ 2024-09-28 48/week @ 2024-10-05 77/week @ 2024-10-12 88/week @ 2024-10-19 120/week @ 2024-10-26 48/week @ 2024-11-02

337 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
~71K SLoC