rules:
  - id: option-is-some-get
    patterns:
      - pattern: Option.get $O
      - pattern-either:
        - pattern-inside: if Option.is_some $O then ...
        - pattern-inside: if ... && Option.is_some $O then ...
    message: use match instead
    languages: [ocaml]
    severity: WARNING

Add semgrep rule for Option.get inside Option.is_some
Add semgrep rule for Option.get inside Option.is_some
