Files
cdk/.config/semgrep.yaml
2024-04-07 08:38:25 -07:00

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