Skip to content

Commit

Permalink
Updated images
Browse files Browse the repository at this point in the history
Summary: #413

Reviewed By: cortinico

Differential Revision: D58589063

fbshipit-source-id: 701c796a6611b28924e9e69eed97c151729af7df
  • Loading branch information
Nivaldo Bondança authored and facebook-github-bot committed Jun 18, 2024
1 parent cec9b50 commit 334b9a0
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 0 deletions.
Binary file modified docs/images/before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/intellij.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/ktfmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/ktlint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions docs/images_source_code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Original
```kotlin
fun
f (
a : Int
, b: Double , c:String) { var result = 0
val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
foo.bar.zed.accept(

)

foo(

)

foo.bar.zed.accept(
DoSomething.bar()
)

bar(
ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build())

ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
}
```

# ktfmt
```kotlin
fun f(a: Int, b: Double, c: String) {
var result = 0
val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar =
43
foo.bar.zed.accept()

foo()

foo.bar.zed.accept(DoSomething.bar())

bar(
ImmutableList.newBuilder()
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.build()
)

ImmutableList.newBuilder()
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.build()
}
```

# ktlint
```kotlin
fun f(
a: Int,
b: Double,
c: String,
) {
var result = 0
val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
foo.bar.zed.accept()

foo()

foo.bar.zed.accept(
DoSomething.bar(),
)

bar(
ImmutableList
.newBuilder()
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.build(),
)

ImmutableList
.newBuilder()
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.add(1)
.build()
}
```

# IntelliJ
```kotlin
fun
f(
a: Int, b: Double, c: String
) {
var result = 0
val aVeryLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongVar = 43
foo.bar.zed.accept(

)

foo(

)

foo.bar.zed.accept(
DoSomething.bar()
)

bar(
ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
)

ImmutableList.newBuilder().add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).add(1).build()
}
```

0 comments on commit 334b9a0

Please sign in to comment.