Why this matters
Supports multiple environments and keeps secrets out of code.
Read API URLs/keys from ENV/credentials and inject where needed; do not hardcode.
Supports multiple environments and keeps secrets out of code.
Side-by-side examples engineers can pattern-match during review.
API_URL = "https://api.example.com"API_URL = ENV.fetch("API_URL")KEY = "abcd"Rails.application.credentials.dig(:service, :key)From the same buckets as this rule.