# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

rules:
  - id: "no-overriding-struct-globals"
    patterns:
      - pattern: |
          structs.$A = ...
    message: "Mutating global structs is never safe"
    languages:
      - "go"
    severity: "ERROR"
    fix: " "
    paths:
      # including tests!
      include: ["*"]
