Skip to content

Commit a6bbdae

Browse files
committed
👕 Add comprehensive clippy lints for code quality
Expand clippy configuration with development, async, and efficiency lints - Add development/debugging lints: dbg_macro, todo, print_stdout - Include async-specific lints: future_not_send, async_yields_async - Add string/collection efficiency lints: implicit_clone, inefficient_to_string, string_lit_as_bytes - Include code complexity lints: too_many_lines, cognitive_complexity - Add error handling lint: result_large_err - Remove commented future consideration lints that are now active These additions improve code quality enforcement across debugging practices, async code patterns, performance considerations, and maintainability metrics.
1 parent 74c7a35 commit a6bbdae

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Cargo.toml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,29 @@ enum_glob_use = { level = "deny", priority = 30 }
9797
unwrap_used = { level = "deny", priority = 30 }
9898
undocumented_unsafe_blocks = { level = "deny", priority = 30 }
9999

100+
# Development/debugging lints
101+
dbg_macro = { level = "warn", priority = 31 }
102+
todo = { level = "warn", priority = 31 }
103+
#print_stdout = { level = "warn", priority = 31 } # CLI should use proper output mechanisms
104+
105+
# Async-specific lints (important for tokio-heavy codebase)
106+
future_not_send = { level = "warn", priority = 32 }
107+
async_yields_async = { level = "warn", priority = 32 }
108+
109+
# String and collection efficiency
110+
implicit_clone = { level = "warn", priority = 33 }
111+
inefficient_to_string = { level = "warn", priority = 33 }
112+
string_lit_as_bytes = { level = "warn", priority = 33 }
113+
114+
# Code complexity (helpful for maintainability)
115+
too_many_lines = { level = "warn", priority = 34 }
116+
cognitive_complexity = { level = "warn", priority = 34 }
117+
118+
# Error handling improvements
119+
result_large_err = { level = "warn", priority = 35 }
120+
100121
# Future considerations
101122
#expect_used = { level = "deny", priority = 30 }
102-
#todo = { level = "warn", priority = 20 } # Consider warning on TODOs
103-
#dbg_macro = { level = "warn", priority = 30 } # Consider warning on dbg! macro usage
104-
#print_stdout = { level = "warn", priority = 30 } # Consider warning on print!/println! usage
105123

106124
[package.metadata.docs.rs]
107125
all-features = true

0 commit comments

Comments
 (0)