Skip to content

Commit

Permalink
more fixes and ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jun 3, 2024
1 parent b3eee9d commit b63752e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions spec/support/contexts/msgpack_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
subject {}

let(:msgpack_jsons) do
if subject.is_a?(Array)
subject.map { |s| MessagePack.unpack(MessagePack.pack(s)) }
else
[MessagePack.unpack(MessagePack.pack(subject))]
end
Array(subject).map { |s| MessagePack.unpack(MessagePack.pack(s)) }
end

let(:msgpack_json) { msgpack_jsons.first }
Expand Down
3 changes: 3 additions & 0 deletions static-analysis.datadog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ rulesets:
percent-w:
ignore:
- spec/**/*
no-optional-hash-params:
ignore:
- '**'
2 changes: 1 addition & 1 deletion yard/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DatadogConfigurationSettingsHandler < YARD::Handlers::Ruby::Base
process do
next if statement.is_a?(YARD::Parser::Ruby::ReferenceNode)

name = call_params[0]
name = call_params.first

# Check if we are already nested inside the DSL namespace
if namespace.has_tag?(:dsl)
Expand Down

0 comments on commit b63752e

Please sign in to comment.