GoogleCloudPlatform / gcpdiag

gcpdiag is a command-line diagnostics tool for GCP customers.
https://gcpdiag.dev/
Apache License 2.0
288 stars 67 forks source link

fix: check for empty buckets #15

Closed faripple closed 2 years ago

faripple commented 2 years ago

The lint bp_2022_001_bucket_access_uniform has unused variable bucket_count. If it's not used we need to remove it. Also, the check for empty buckets is implemented incorrectly. It was put inside of the for loop when should be checked before.