-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ktlint released version 1.0.0 this morning, and some of the formatting preferences changed. Everything else works swimmingly. Marked snapshots as release-ready.
- Loading branch information
1 parent
60ad8a7
commit 68be584
Showing
3 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing formatter ktlint test basic 1`] = ` | ||
"class MainActivity : AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) // note the spacing | ||
setContentView(R.layout.activity_main) | ||
} | ||
} | ||
" | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing formatter ktlint test complex 1`] = ` | ||
"class TestBaselineExtraErrorFile { | ||
{ }} | ||
} | ||
" | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing formatter ktlint test utf8 1`] = ` | ||
"package demo | ||
|
||
fun main(args: Array<String>) { | ||
println( | ||
""" | ||
┌───────────┬───────────┬────────────┐ | ||
│ BLOCK │ FORM │ ADDED_DATE │ | ||
├───────────┼───────────┼────────────┤ | ||
│ 1.1.1.1/1 │ trunca… │ 1111-01-01 │ | ||
│ 2.2.2.2/2 │ OtherForm │ 1212-12-12 │ | ||
└───────────┴───────────┴────────────┘ | ||
""".trimIndent(), | ||
) | ||
} | ||
" | ||
`; |