From 2bf019f08ba441a38fd718351a90428d01284bab Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 4 Apr 2018 17:51:09 +0200 Subject: [PATCH] Disable DynamicAttributeDefinedStatically cop rubocop-rspec includes a FactoryBot cop DynamicAttributeDefinedStatically that enforces declaring dynamic attribute values in a block. It was decided not to follow this convention. Explicitly disabling it gives more insight about current rubocop rules. http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/DynamicAttributeDefinedStatically --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 4b4bf3148..f697dab0f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -406,6 +406,9 @@ RSpec/VoidExpect: FactoryBot/StaticAttributeDefinedDynamically: Enabled: true +FactoryBot/DynamicAttributeDefinedStatically: + Enabled: false + Security/Eval: Enabled: true