rpm-spec-tool 0.1.1

Pretty-printer and static analyzer CLI for RPM .spec files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod ast;
pub mod check;
pub mod completions;
pub mod format;
pub mod lint;
pub mod lints;
pub mod pretty;
pub mod printer_config;
pub mod profile;

/// Upper bound on the per-level conditional indent. The printer
/// renders the indent literally as `n * level` spaces; without a
/// cap, a malicious or mistyped value (e.g. `--indent 4000000000`)
/// would push billions of spaces into the output. 64 spaces per
/// level is already absurd for human review.
///
/// Shared by `format` and `pretty` so both honour the same ceiling.
pub const MAX_INDENT_LEVEL: u32 = 64;