-
Notifications
You must be signed in to change notification settings - Fork 8
Configure clippy lints #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Configure clippy lints #195
Conversation
aram356
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start.
aram356
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good
Setup workspace lints to enforce coding standards and catch issues during development. 303 tests pass. Resolves: #189
Comprehensive documentation of error and panic conditions improves API clarity and enables gradual enforcement of missing_errors_doc and missing_panics_doc lints. This establishes a foundation for better error handling practices across the codebase. Resolves: #189
The default lint configuration was permissive, allowing unwrap() and panic() in production code. This change enforces stricter error handling by denying these patterns and requiring explicit expect() messages. IntegrationRegistry::new() previously panicked on configuration errors, making startup failures hard to diagnose. Returning Result allows the caller to log meaningful context before returning an error response. Additional pedantic lints (needless_pass_by_value, redundant_closure) help catch common inefficiencies during development.
8fe64ef to
3bc62da
Compare
Add needless_pass_by_value and redundant_closure_for_method_calls to the list of lints to consider enabling as the codebase matures.
…configuration-to-enforce-codebase-consistency
Fixes clippy::doc_markdown by wrapping the example URL in the origin_override field documentation with angle brackets.
aram356
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Setup workspace lints to enforce coding standards
and catch issues during development.
Resolves: #189