mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-28 10:05:10 +01:00
17 lines
604 B
YAML
17 lines
604 B
YAML
rules:
|
|
# - id: use-of-unwrap
|
|
# pattern: $X.unwrap()
|
|
# message: "Found use of unwrap(). Consider using more robust error handling."
|
|
# languages: [rust]
|
|
# severity: WARNING
|
|
# - id: use-of-expect
|
|
# pattern: $X.expect(...)
|
|
# message: "Found use of expect(). Consider providing clearer error messages or using more robust error handling."
|
|
# languages: [rust]
|
|
# severity: WARNING
|
|
- id: direct-panic
|
|
pattern: panic!(...)
|
|
message: "Direct use of panic!(). Consider if there's a more graceful way to handle this error case."
|
|
languages: [rust]
|
|
severity: ERROR
|