Skip to content

Commit

Permalink
Update ktlint snapshots (#461)
Browse files Browse the repository at this point in the history
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
TylerJang27 authored Sep 6, 2023
1 parent 60ad8a7 commit 68be584
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions linters/ktlint/test_data/ktlint_v1.0.0_basic.fmt.shot
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)
}
}
"
`;
9 changes: 9 additions & 0 deletions linters/ktlint/test_data/ktlint_v1.0.0_complex.fmt.shot
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 {
{ }}
}
"
`;
20 changes: 20 additions & 0 deletions linters/ktlint/test_data/ktlint_v1.0.0_utf8.fmt.shot
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(),
)
}
"
`;

0 comments on commit 68be584

Please sign in to comment.