Skip to main content

max / makenotwork

egui-updater: adopt universal clippy/lint baseline; warnings to zero Add the shared pedantic + unreachable_pub baseline. All resulting warnings were machine-applicable (clippy --fix); no residue to hand-fix. clippy --all-targets clean, cargo fmt clean, tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-23 13:08 UTC
Commit: 442b459db702c0e4c10702a99b86cbcbf29ef087
Parent: 2fd51de
1 file changed, +32 insertions, -0 deletions
@@ -11,3 +11,35 @@ categories = ["gui", "development-tools"]
11 11 # 0.0.0 name-reservation placeholder.
12 12
13 13 [dependencies]
14 +
15 + [lints.rust]
16 + unused = "warn"
17 + unreachable_pub = "warn"
18 +
19 + [lints.clippy]
20 + pedantic = { level = "warn", priority = -1 }
21 + # Allow-list tuned from a measured breakdown across server/multithreaded/pter
22 + # (2026-07-22). These are the high-churn / low-signal pedantic lints; everything
23 + # else in `pedantic` stays a warning. Keep this block identical across repos.
24 + module_name_repetitions = "allow"
25 + # Doc lints — no docs-completeness push underway.
26 + missing_errors_doc = "allow"
27 + missing_panics_doc = "allow"
28 + doc_markdown = "allow"
29 + # Numeric casts — endemic and mostly intentional in size/byte math.
30 + cast_possible_truncation = "allow"
31 + cast_sign_loss = "allow"
32 + cast_precision_loss = "allow"
33 + cast_possible_wrap = "allow"
34 + cast_lossless = "allow"
35 + # Subjective structure/style nags — high churn, low signal.
36 + must_use_candidate = "allow"
37 + too_many_lines = "allow"
38 + struct_excessive_bools = "allow"
39 + similar_names = "allow"
40 + items_after_statements = "allow"
41 + single_match_else = "allow"
42 + # Frequent false-positives in TUI/router-heavy code — added from the buckets breakdown.
43 + match_same_arms = "allow"
44 + unnecessary_wraps = "allow"
45 + type_complexity = "allow"