diff --git a/.semgrep.yml b/.semgrep.yml index 3a2fac54d12..795077ba1be 100644 --- a/.semgrep.yml +++ b/.semgrep.yml @@ -159,7 +159,7 @@ rules: - aws/data_source_aws_*.go patterns: - pattern-regex: '(resource.+Read|flatten.+Resource)' - - pattern-inside: func $FUNCNAME(...) error { ... } + - pattern-inside: func $FUNCNAME(...) $RETURNTYPE { ... } - pattern-not-inside: | d.Set(..., []interface{}{ ... }) - pattern-not-inside: |