R018¶
ResourcesStandard
check for time.Sleep() function usage
The R018 analyzer reports time.Sleep() function usage. Terraform Providers should generally avoid this function when waiting for API operations and prefer polling methods such as resource.Retry() or (resource.StateChangeConf).WaitForState().
Examples¶
Ignoring reports¶
Singular reports can be ignored by adding a //lintignore:R018 Go code comment at the end of the offending line or on the line immediately preceding, e.g.
This page is generated from passes/R018/README.md, which lives beside the analyzer.