1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use crate::prelude::*;
/// Options controlling which problems the `audit` command reports.
#[derive(Options, Clone, Debug, Deserialize, Serialize)]
#[expect(clippy::struct_excessive_bools, reason = "one ignore flag per check")]
pub struct AuditOptions {
/// Should the check for non-UTF-8 paths be disabled?
#[arg(long)]
pub ignore_non_utf8: bool,
/// Should the check for file torrents be disabled?
#[arg(long)]
pub ignore_single_file: bool,
/// Should the check for libtorrent-stripped path characters be disabled?
#[arg(long)]
pub ignore_libtorrent: bool,
/// Should the check for invisible or zero-width path characters be disabled?
#[arg(long)]
pub ignore_invisible: bool,
/// Should the check for unnecessary directional marks be disabled?
#[arg(long)]
pub ignore_directional: bool,
/// Should the check for unsafe path segments be disabled?
#[arg(long)]
pub ignore_unsafe: bool,
/// Should the check for decomposed (non-NFC) path characters be disabled?
#[arg(long)]
pub ignore_nfd: bool,
/// Should the check for file extensions broken by libtorrent be disabled?
#[arg(long)]
pub ignore_broken_extension: bool,
/// Should the check for a leading period in path components be disabled?
#[arg(long)]
pub ignore_leading_period: bool,
/// Should the check for a leading space in path components be disabled?
#[arg(long)]
pub ignore_leading_space: bool,
/// Should the check for a trailing space in path components be disabled?
#[arg(long)]
pub ignore_trailing_space: bool,
/// Should diffs be rendered with BB code?
#[arg(long)]
pub print_bb_code: bool,
}
impl OptionsContract for AuditOptions {
type Partial = AuditOptionsPartial;
fn validate(&self, _validator: &mut OptionsValidator) {}
}