Skip to content

Commit

Permalink
Merge pull request #22076 from hashicorp/semgrep-restore-domainname
Browse files Browse the repository at this point in the history
linter/semgrep: Restore domain name check
  • Loading branch information
gdavison authored Dec 7, 2021
2 parents d71ac60 + 01c20be commit 660bdbe
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,29 @@ rules:
message: Domain names should be in the namespaces defined in RFC 6761 (https://datatracker.ietf.org/doc/html/rfc6761) as reserved for testing
paths:
include:
- aws/data_source*.go
- aws/resource_aws_a*.go
- aws/resource_aws_b*.go
- aws/resource_aws_workspaces_*.go
- internal/service/**/*_data_source_test.go
- internal/service/[a-b]*
- internal/service/d*
- internal/service/[f-z]*
exclude:
- internal/service/firehose/delivery_stream_test.go
- internal/service/globalaccelerator/accelerator_test.go
- internal/service/iam/openid_connect_provider_test.go
- internal/service/lightsail/domain_test.go
- internal/service/mq/broker_test.go
- internal/service/opsworks/application_test.go
- internal/service/opsworks/stack_test.go
- internal/service/ram/resource_share_accepter_test.go
- internal/service/rds/instance_test.go
- internal/service/route53/sweep.go
- internal/service/s3/bucket_test.go
- internal/service/s3control/bucket_test.go
- internal/service/sagemaker/code_repository_test.go
- internal/service/sagemaker/notebook_instance_test.go
- internal/service/shield/protection_test.go
- internal/service/storagegateway/cached_iscsi_volume.go
- internal/service/storagegateway/cached_iscsi_volume_test.go
- internal/service/transfer/server_test.go
patterns:
- patterns:
- pattern-regex: '[\"`].*(?<!(example))\.(com|net|org)\b'
Expand Down

0 comments on commit 660bdbe

Please sign in to comment.