Skip to content

Commit

Permalink
generalize pattern-in return type to catch diag.Diagnostics types
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Apr 15, 2021
1 parent 4200ec3 commit f924198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit f924198

Please sign in to comment.