Skip to content

Commit

Permalink
Merge pull request #2979 from DataDog/disable-bad-cop
Browse files Browse the repository at this point in the history
Lint:Disable double negation cop
  • Loading branch information
GustavoCaso authored Jul 19, 2023
2 parents 7632a80 + 5533cac commit 75e0942
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,7 @@ Gemspec/RequiredRubyVersion:

Style/WordArray:
Enabled: false

# `!!` is the de facto way in Ruby to cast an Object to boolean.
Style/DoubleNegation:
Enabled: false
2 changes: 1 addition & 1 deletion lib/datadog/profiling/flush.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def initialize(
@code_provenance_data = code_provenance_data
@tags_as_array = tags_as_array
@internal_metadata_json = JSON.fast_generate(
no_signals_workaround_enabled: (!!no_signals_workaround_enabled).to_s, # rubocop:disable Style/DoubleNegation
no_signals_workaround_enabled: (!!no_signals_workaround_enabled).to_s,
)
end
end
Expand Down

0 comments on commit 75e0942

Please sign in to comment.