digitalocean / terraform-provider-digitalocean

Terraform DigitalOcean provider
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
Mozilla Public License 2.0
509 stars 278 forks source link

Enable failing staticchecks: SA1006 #1226

Closed loosla closed 1 month ago

loosla commented 1 month ago

Some staticchecks checks are disabled. Please enable the failing check SA1006 and make the necessary changes to ensure staticchecks checks pass.

Steps:

  1. Remove SA1006 from https://github.com/digitalocean/terraform-provider-digitalocean/blob/6593bad18758574921e74670c9df08ca8e982566/.golangci.yml#L16
  2. Run make lint from the root directory of the repo to see the issues to fix
  3. Fix the issues to make make lint pass