# Ported from alibaba/open-code-review (Apache-2.0):
#   internal/config/rules/rule_docs/build_gradle.md
#   at commit 89ec55b14442c9f2601fb55b5f554fb6fabbe2c7.
# OCR tool names were replaced with this workflow's read-only
# exploration language. See the NOTICE.md and LICENSE files
# in rules/builtin/ for attribution and license details.
version: 1

rules:
  - id: format.build-gradle
    match:
      paths:
        - "**/build.gradle"
    checks:
      - id: dependency-hygiene
        category: correctness
        guidance: |
          Avoid introducing snapshot version dependencies in production environments; use specific version numbers instead. Note: ignore this rule when the version number is not on a newly added line of code.
