Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESOURCE-586 Fix the build lint issue in inspec-gcp #435

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

soumyo13
Copy link
Contributor

Signed-off-by: Soumyodeep Karmakar [email protected]

Description

We got this bellow offense in the buildkite. We are fixing the mentioned offense.

Issues Resolved

Offenses:

libraries/google_sql_database_instance.rb:104:33: C: [Correctable] Style/ZeroLengthPredicate: Use empty? instead of size.zero?.
return '' if !@ip_addresses.size.zero? || @ip_addresses[0].ip_address.nil?
^^^^^^^^^^

971 files inspected, 1 offense detected, 1 offense autocorrectable
RuboCop failed!
🚨 Error: The command exited with status 1
user command error: The plugin docker command hook exited with status 1

Please ensure commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco

Signed-off-by: Soumyodeep Karmakar <[email protected]>
@soumyo13 soumyo13 requested a review from a team as a code owner January 30, 2023 09:04
@soumyo13 soumyo13 self-assigned this Jan 30, 2023
@soumyo13 soumyo13 changed the title fixing the lint error RESOURCE-586 Fix the build lint issue in inspec-gcp Jan 30, 2023
@soumyo13 soumyo13 merged commit 2fa1f21 into main Jan 31, 2023
@soumyo13 soumyo13 deleted the RESOURCE-586-fix-the-build-lint-issue-in-inspec-gcp branch January 31, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants