Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ktlint snapshots #461

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(),
)
}
"
`;