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

Sync OpenAPI specification for (spec-v1-synthetics.yaml) #2214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

@api-clients-generation-pipeline api-clients-generation-pipeline bot requested a review from a team as a code owner January 28, 2025 16:09
@@ -1536,7 +1536,7 @@ def list_global_variables_with_http_info(opts = {})
return_type = opts[:debug_return_type] || 'SyntheticsListGlobalVariablesResponse'

# auth_names
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ, :AuthZ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Quality Violation

Suggested change
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ, :AuthZ]
auth_names = opts[:debug_auth_names] || %i[apiKeyAuth appKeyAuth AuthZ AuthZ]
Consider using the %i syntax instead (...read more)

The rule "Prefer %i to the literal array syntax" is a guideline that encourages the use of the %i syntax for arrays of symbols. This is a part of the Ruby style guide that aims to promote conciseness and readability.

Symbols are immutable, reusable objects often used in Ruby instead of strings when the value does not need to be changed. When declaring an array of symbols, using the %i syntax can make your code cleaner and easier to read.

To adhere to this rule, instead of declaring an array of symbols using the literal array syntax like [:foo, :bar, :baz], use the %i syntax like %i[foo bar baz]. It's a good practice to consistently use %i for arrays of symbols as it enhances code readability and maintainability.

View in Datadog  Leave us feedback  Documentation

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jan 28, 2025

Datadog Report

Branch report: datadog-api-spec/generated/3452
Commit report: 07d3ee3
Test service: datadog-api-client-ruby

✅ 0 Failed, 1040 Passed, 1903 Skipped, 1m 48.04s Total duration (59.01s time saved)

@api-clients-generation-pipeline api-clients-generation-pipeline bot force-pushed the datadog-api-spec/generated/3452 branch from 75b01a6 to 9cb86b4 Compare February 12, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants