diff --git a/documentation/release-latest/docs/rules/standard.md b/documentation/release-latest/docs/rules/standard.md index 6a7c9853f2..625b0f5b41 100644 --- a/documentation/release-latest/docs/rules/standard.md +++ b/documentation/release-latest/docs/rules/standard.md @@ -59,22 +59,22 @@ Requires a blank line before any class or function declaration. No blank line is === "[:material-heart:](#) Ktlint" ```kotlin - const val FOO_1 = "foo1" + const val foo1 = "foo1" class FooBar { val foo2 = "foo2" val foo3 = "foo3" - + fun bar1() { val foo4 = "foo4" val foo5 = "foo5" } - + fun bar2() = "bar" val foo6 = "foo3" val foo7 = "foo4" - + enum class Foo } ``` @@ -83,22 +83,17 @@ Requires a blank line before any class or function declaration. No blank line is ```kotlin const val foo1 = "foo1" - class FooBar { val foo2 = "foo2" val foo3 = "foo3" - fun bar1() { - val foo4 = "foo4" - val foo5 = "foo5" + val foo4 = "foo4" + val foo5 = "foo5" } - fun bar2() = "bar" - val foo6 = "foo3" val foo7 = "foo4" - - enum class Foo {} + enum class Foo } ``` diff --git a/documentation/snapshot/docs/rules/standard.md b/documentation/snapshot/docs/rules/standard.md index ad913e1a4e..aeca5abaef 100644 --- a/documentation/snapshot/docs/rules/standard.md +++ b/documentation/snapshot/docs/rules/standard.md @@ -59,22 +59,22 @@ Requires a blank line before any class or function declaration. No blank line is === "[:material-heart:](#) Ktlint" ```kotlin - const val FOO_1 = "foo1" + const val foo1 = "foo1" class FooBar { val foo2 = "foo2" val foo3 = "foo3" - + fun bar1() { val foo4 = "foo4" val foo5 = "foo5" } - + fun bar2() = "bar" val foo6 = "foo3" val foo7 = "foo4" - + enum class Foo } ``` @@ -83,22 +83,17 @@ Requires a blank line before any class or function declaration. No blank line is ```kotlin const val foo1 = "foo1" - class FooBar { val foo2 = "foo2" val foo3 = "foo3" - fun bar1() { - val foo4 = "foo4" - val foo5 = "foo5" + val foo4 = "foo4" + val foo5 = "foo5" } - fun bar2() = "bar" - val foo6 = "foo3" val foo7 = "foo4" - - enum class Foo {} + enum class Foo } ```