mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-11 11:45:44 +00:00
be8e626806
We currently use a bit of a hack in `.cargo/config` to make sure that clippy isn't too annoying by specifying the list of lints. There is now a stable way to define lints for a workspace. The only down side is that every crate seems to have to opt into this so there's a *few* files modified in this PR. Dependencies: - [x] PR that upgrades CI to use rust 1.74 is merged. --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
34 lines
768 B
TOML
34 lines
768 B
TOML
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html
|
|
|
|
# ignore zombienet as they do some deliberate custom toml stuff
|
|
exclude = [
|
|
"cumulus/zombienet/**",
|
|
"polkadot/node/malus/integrationtests/**",
|
|
"polkadot/zombienet_tests/**",
|
|
"substrate/zombienet/**",
|
|
]
|
|
|
|
# global rules
|
|
[formatting]
|
|
reorder_arrays = true
|
|
inline_table_expand = false
|
|
array_auto_expand = false
|
|
array_auto_collapse = false
|
|
indent_string = " " # tab
|
|
|
|
# don't re-order order-dependent deb package metadata
|
|
[[rule]]
|
|
include = ["polkadot/Cargo.toml"]
|
|
keys = ["package.metadata.deb"]
|
|
|
|
[rule.formatting]
|
|
reorder_arrays = false
|
|
|
|
# don't re-order order-dependent rustflags
|
|
[[rule]]
|
|
include = [".cargo/config.toml"]
|
|
keys = ["build"]
|
|
|
|
[rule.formatting]
|
|
reorder_arrays = false
|