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
This commit is contained in:
Bertocq
2018-04-04 17:51:09 +02:00
parent e2c42a3c63
commit 2bf019f08b

View File

@@ -406,6 +406,9 @@ RSpec/VoidExpect:
FactoryBot/StaticAttributeDefinedDynamically: FactoryBot/StaticAttributeDefinedDynamically:
Enabled: true Enabled: true
FactoryBot/DynamicAttributeDefinedStatically:
Enabled: false
Security/Eval: Security/Eval:
Enabled: true Enabled: true