semgrep.yaml 604 B

12345678910111213141516
  1. rules:
  2. # - id: use-of-unwrap
  3. # pattern: $X.unwrap()
  4. # message: "Found use of unwrap(). Consider using more robust error handling."
  5. # languages: [rust]
  6. # severity: WARNING
  7. # - id: use-of-expect
  8. # pattern: $X.expect(...)
  9. # message: "Found use of expect(). Consider providing clearer error messages or using more robust error handling."
  10. # languages: [rust]
  11. # severity: WARNING
  12. - id: direct-panic
  13. pattern: panic!(...)
  14. message: "Direct use of panic!(). Consider if there's a more graceful way to handle this error case."
  15. languages: [rust]
  16. severity: ERROR