.ci/providerlint/passes/AWSR002/README.md
The AWSR002 analyzer reports when a (schema.ResourceData).Set() call with the tags key is missing a call to (keyvaluetags.KeyValueTags).IgnoreConfig() in the value, which ensures any provider level ignore tags configuration is applied.
d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().Map())
ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig(ctx)
d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
The check can be ignored for a certain line via a //lintignore:AWSR002 comment on the previous line or at the end of the offending line, e.g.
//lintignore:AWSR002
d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().Map())