rules:
  - id: detect-apple-core-ml
    languages:
      - swift
    severity: INFO
    message: "Possibly found usage of AI: Apple CoreML"
    pattern-either:
      - pattern: VNCoreMLModel(...)
      - pattern: MLModelConfiguration(...)
    metadata:
      references:
        - https://semgrep.dev/blog/2024/detecting-shadow-ai
      category: maintainability
      technology:
        - genAI
        - LLMs
      confidence: LOW