Skip to content

Conversation

@api-clients-generation-pipeline
Copy link
Contributor

@api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...'
end
allowable_values = ['identity', 'gzip', 'deflate']
allowable_values = ['identity', 'gzip', 'deflate', 'zstd1']

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
allowable_values = ['identity', 'gzip', 'deflate', 'zstd1']
allowable_values = %w[identity gzip deflate zstd1]
Consider using the %w syntax instead (...read more)

The rule "Prefer %w to the literal array syntax" is a Ruby style guideline that encourages the use of %w notation instead of the traditional array syntax when defining arrays of strings. This rule is part of the Ruby community's efforts to promote readability and simplicity in Ruby code.

This rule is important because it helps to keep the code concise and easy to read. The %w notation allows you to define an array of strings without having to use quotes and commas. This can make the code cleaner and easier to understand, especially when dealing with large arrays.

To follow this rule, replace the traditional array syntax with the %w notation. For example, instead of writing ['foo', 'bar', 'baz'], you should write %w[foo bar baz]. This will create the same array, but in a more readable and concise way. By following this rule, you can help to make your Ruby code cleaner and easier to understand.

View in Datadog  Leave us feedback  Documentation

@datadog-datadog-prod-us1
Copy link

Datadog Report

Branch report: datadog-api-spec/generated/3676
Commit report: 7ae11dd
Test service: datadog-api-client-ruby

✅ 0 Failed, 2006 Passed, 1093 Skipped, 4m 48.21s Total Time

@api-clients-generation-pipeline api-clients-generation-pipeline bot deleted the datadog-api-spec/generated/3676 branch March 21, 2025 19:03
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.

1 participant