Skip to content

Commit 49467a5

Browse files
committed
chore(deps): upgrade perfectionist to 0.0.0-rc.16
Bump the perfectionist dylint library from 0.0.0-rc.14 to 0.0.0-rc.16 and drop the now-removed arc_rc_clone disable entry. Add narrow, module-level suppression for a confirmed false positive in the rc.16 lint_silence_reason rule, which fires on the `#[allow]` attributes that clap's derive macro synthesizes for every field of a `#[derive(Parser)]` struct. The suppression is scoped to the two modules that define such structs and references the tracking issue. Refs #430
1 parent 4e19260 commit 49467a5

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

cli/ai_instructions.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
#![cfg_attr(dylint_lib = "perfectionist", feature(register_tool))]
2+
#![cfg_attr(dylint_lib = "perfectionist", register_tool(perfectionist))]
3+
#![cfg_attr(
4+
dylint_lib = "perfectionist",
5+
allow(
6+
perfectionist::lint_silence_reason,
7+
reason = "false positive on `clap`-derive-generated `#[allow]` attributes; see https://github.com/KSXGitHub/parallel-disk-usage/issues/430"
8+
)
9+
)]
10+
111
use clap::Parser;
212
use derive_more::Display;
313
use pipe_trait::Pipe;

dylint.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
[workspace.metadata.dylint]
22
libraries = [
3-
{ git = "https://github.com/KSXGitHub/perfectionist", tag = "0.0.0-rc.14" },
4-
]
5-
6-
[perfectionist]
7-
disable = [
8-
{ name = "arc_rc_clone", reason = "already use clippy::clone_on_ref_ptr" },
3+
{ git = "https://github.com/KSXGitHub/perfectionist", tag = "0.0.0-rc.16" },
94
]
105

116
["perfectionist::derive_ordering"]

src/args.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#![cfg_attr(
2+
dylint_lib = "perfectionist",
3+
allow(
4+
perfectionist::lint_silence_reason,
5+
reason = "false positive on `clap`-derive-generated `#[allow]` attributes; see https://github.com/KSXGitHub/parallel-disk-usage/issues/430"
6+
)
7+
)]
8+
19
pub mod depth;
210
pub mod fraction;
311
pub mod quantity;

0 commit comments

Comments
 (0)