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
# ============================================================================
# LINT POLICY FILE -- DO NOT WEAKEN, DISABLE, OR RELAX RULES WITHOUT EXPLICIT
# USER/MAINTAINER DIRECTION. REFACTOR THE CODE INSTEAD. "BEING LAZY TO
# REFACTOR" IS NOT A VALID REASON TO CHANGE LINTING BEHAVIOR. THE ONLY
# EXCEPTION IS DOCUMENTED AUTOGENERATED CODE HANDLED BY THE REPOSITORY'S
# APPROVED MECHANISM.
# ============================================================================
# Package-local clippy configuration for ralph-workflow.
# NOTE: This crate has extensive lint exceptions due to legacy code patterns.
# The violations were pre-existing when the lint policy was tightened.
# --- Test strictness: no escape hatches ---
= false
= false
= false
= false
= false
# --- Iterator loops ---
= true
# --- Arithmetic ---
= ["*"]
# --- Disallowed types (interior mutability / shared mutable state) ---
# NOTE: Allow these types as they are needed for boundary/IO code
= []
# --- Disallowed methods (mutation / imperative patterns) ---
# NOTE: Allow these methods as they are needed for performance and convenience
= []
# --- Disallowed macros (side effects) ---
# NOTE: Allow eprintln for logging in a CLI application
= []
# --- large_stack_frames: deliberate test-only code allowances via #[expect] ---
# The test harness generates large stack frames that are unavoidable.
# These are suppressed with #[expect(clippy::large_stack_frames, reason = "...")] at item scope.
# The generated lib-test harness error is also filtered by the xtask verify strip step.
# This is a deliberate exception documented in the lint policy.
# See: CODE_STYLE.md and the lint policy exception table.