Pattern: Missing empty line after example
Issue: -
Checks if there is an empty line after example blocks.
# bad
RSpec.describe Foo do
it 'does this' do
end
it 'does that' do
end
end
# good
RSpec.describe Foo do
it 'does this' do
end
it 'does that' do
end
end
# fair - it's ok to have non-separated one-liners
RSpec.describe Foo do
it { one }
it { two }
end
# rubocop.yml
# RSpec/EmptyLineAfterExample:
# AllowConsecutiveOneLiners: false
# bad
RSpec.describe Foo do
it { one }
it { two }
end
Name | Default value | Configurable values |
---|---|---|
AllowConsecutiveOneLiners | true |
Boolean |