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:
@@ -406,6 +406,9 @@ RSpec/VoidExpect:
|
||||
FactoryBot/StaticAttributeDefinedDynamically:
|
||||
Enabled: true
|
||||
|
||||
FactoryBot/DynamicAttributeDefinedStatically:
|
||||
Enabled: false
|
||||
|
||||
Security/Eval:
|
||||
Enabled: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user