-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix. Newline at the beginning of code block is not removed if ther…
- Loading branch information
Showing
6 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,10 @@ class Example { | |
fun foo() { | ||
bar() | ||
} | ||
|
||
fun bar() { | ||
println() | ||
println() | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,12 @@ class Example { | |
bar() | ||
|
||
} | ||
|
||
fun bar() { | ||
|
||
|
||
println() | ||
println() | ||
} | ||
} | ||
|
8 changes: 7 additions & 1 deletion
8
diktat-rules/src/test/resources/test/paragraph3/blank_lines/RedundantBlankLinesExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package test.paragraph3.blank_lines | ||
|
||
class Example { | ||
|
||
val foo = 0 | ||
|
||
fun bar() { } | ||
|
||
fun foo() { | ||
list.map { | ||
bar() | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,12 @@ class Example { | |
|
||
|
||
fun bar() { } | ||
|
||
fun foo() { | ||
list.map { | ||
|
||
bar() | ||
} | ||
} | ||
} | ||
|