From 4779c6701e943757cc4aa3a7d85d4bf094392d13 Mon Sep 17 00:00:00 2001 From: Mateusz Drewniak Date: Mon, 13 May 2024 22:11:26 +0200 Subject: [PATCH] Fix rubocop warnings --- .rubocop.yml | 3 +++ lib/shale/builder.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index b561240..47736f4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,3 +11,6 @@ Style/DocumentationMethod: Style/TrailingCommaInArguments: Enabled: false + +Naming/BlockForwarding: + Enabled: false diff --git a/lib/shale/builder.rb b/lib/shale/builder.rb index a2d4ee6..418c86a 100644 --- a/lib/shale/builder.rb +++ b/lib/shale/builder.rb @@ -106,7 +106,7 @@ def attributes; end ).void end def attribute(name, type, collection: false, default: nil, doc: nil, **kwargs, &block) - super(name, type, collection: collection, default: default, **kwargs, &block) + super(name, type, collection:, default:, **kwargs, &block) attributes[name.to_sym]&.doc = doc # add doc to the attribute return unless type < ::Shale::Mapper