# GitHub Actions workflow YAML configuration
# Focused rules for CI/CD workflows - no duplication, minimal conflicts

rules:
  # Core formatting rules for GitHub Actions
  indentation:
    spaces: 2
    indent-sequences: true
    check-multi-line-strings: false

  # Allow longer lines for complex workflow commands
  line-length:
    max: 200
    level: warning

  # Allow empty values in workflow matrices and optional fields
  empty-values:
    forbid-in-block-mappings: false
    forbid-in-flow-mappings: false

  # GitHub Actions workflows use flexible comment styles
  comments-indentation: disable
  comments:
    require-starting-space: true
    min-spaces-from-content: 1

  # Allow reasonable empty line spacing
  empty-lines:
    max-start: 2
    max-end: 1
    max: 2

  # Bracket spacing for readability
  brackets:
    min-spaces-inside: 0
    max-spaces-inside: 1

  # GitHub Actions uses 'on' keyword for triggers
  truthy:
    allowed-values: ["true", "false", "on"]

  # Document structure
  document-start: disable

  # Key ordering for consistency (warning only)
  key-ordering: disable
