Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern Matching in Quotations #114

Open
y-matsutomo opened this issue Oct 28, 2021 · 0 comments
Open

Pattern Matching in Quotations #114

y-matsutomo opened this issue Oct 28, 2021 · 0 comments
Labels
type: bug Something isn't working

Comments

@y-matsutomo
Copy link
Contributor

Description of the bug

A pattern matching in quotations does not work properly.

Steps to Reproduce

rule

version: "1"
rules:
  - id: "test"
    title: "test"
    language: hcl
    message: "test"
    patterns:
      - pattern: |
          resource "test" :[NAME] {
            :[...SETTINGS]
            member  = ":[_]"
          }

target code

resource "test" "bad_example" {
  role    = "roles/admin"
  member  = "serviceAccount:${google_service_account.test.email}"
}

Expected Behaviour

It should match the pattern but it does not.

Additional Materials

N/A

@y-matsutomo y-matsutomo added the type: bug Something isn't working label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant