Add and appy MultilineOperationIndentation rule

This way it's easier to see when lines are part of multiline
statements and when they belong to `if` statements.
This commit is contained in:
Javi Martín
2023-07-01 17:02:52 +02:00
parent 8b13daad95
commit 32b1fc53e1
14 changed files with 25 additions and 22 deletions

View File

@@ -19,8 +19,8 @@ describe Shared::LinkListComponent do
)
expect(page).to be_rendered with: '<ul class="menu">' + "\n" +
'<li><a href="/">Home</a></li>' + "\n" +
'<li><a href="/info">Info</a></li>' + "\n</ul>\n"
'<li><a href="/">Home</a></li>' + "\n" +
'<li><a href="/info">Info</a></li>' + "\n</ul>\n"
end
it "accepts anchor tags" do
@@ -29,8 +29,8 @@ describe Shared::LinkListComponent do
)
expect(page).to be_rendered with: '<ul class="menu">' + "\n" +
'<li><a href="/">Home</a></li>' + "\n" +
'<li><a href="/info">Info</a></li>' + "\n</ul>\n"
'<li><a href="/">Home</a></li>' + "\n" +
'<li><a href="/info">Info</a></li>' + "\n</ul>\n"
end
it "accepts options for links" do