max / makenotwork
1 file changed,
+32 insertions,
-0 deletions
| @@ -9,3 +9,35 @@ description = "The status payload contract every monitored service emits and the | |||
| 9 | 9 | serde = { version = "1.0.228", features = ["derive"] } | |
| 10 | 10 | serde_json = "1" | |
| 11 | 11 | chrono = { version = "0.4", features = ["serde"] } | |
| 12 | + | ||
| 13 | + | [lints.rust] | |
| 14 | + | unused = "warn" | |
| 15 | + | unreachable_pub = "warn" | |
| 16 | + | ||
| 17 | + | [lints.clippy] | |
| 18 | + | pedantic = { level = "warn", priority = -1 } | |
| 19 | + | # Allow-list tuned from a measured breakdown across server/multithreaded/pter | |
| 20 | + | # (2026-07-22). These are the high-churn / low-signal pedantic lints; everything | |
| 21 | + | # else in `pedantic` stays a warning. Keep this block identical across repos. | |
| 22 | + | module_name_repetitions = "allow" | |
| 23 | + | # Doc lints — no docs-completeness push underway. | |
| 24 | + | missing_errors_doc = "allow" | |
| 25 | + | missing_panics_doc = "allow" | |
| 26 | + | doc_markdown = "allow" | |
| 27 | + | # Numeric casts — endemic and mostly intentional in size/byte math. | |
| 28 | + | cast_possible_truncation = "allow" | |
| 29 | + | cast_sign_loss = "allow" | |
| 30 | + | cast_precision_loss = "allow" | |
| 31 | + | cast_possible_wrap = "allow" | |
| 32 | + | cast_lossless = "allow" | |
| 33 | + | # Subjective structure/style nags — high churn, low signal. | |
| 34 | + | must_use_candidate = "allow" | |
| 35 | + | too_many_lines = "allow" | |
| 36 | + | struct_excessive_bools = "allow" | |
| 37 | + | similar_names = "allow" | |
| 38 | + | items_after_statements = "allow" | |
| 39 | + | single_match_else = "allow" | |
| 40 | + | # Frequent false-positives in TUI/router-heavy code — added from the buckets breakdown. | |
| 41 | + | match_same_arms = "allow" | |
| 42 | + | unnecessary_wraps = "allow" | |
| 43 | + | type_complexity = "allow" |