Skip to content

Commit a23ef8c

Browse files
committed
Updated Ktlint configurations
- Added suppression for Ktlint in main.kt for desktop. - Disabled Ktlint for specific generated files in .editorconfig. - Changed `MainViewController` to `mainViewController` for iOS.
1 parent ec67e86 commit a23ef8c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.editorconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,13 @@ ktlint_standard_import-ordering = disabled
1313
ktlint_standard_no-empty-first-line-in-class-body = disabled
1414
ktlint_standard_annotation = disabled
1515
ktlint_standard_multiline-expression-wrapping = disabled
16-
ktlint_standard_string-template-indent = disabled
16+
ktlint_standard_string-template-indent = disabled
17+
18+
[composeApp/build/generated/compose/resourceGenerator/kotlin/commonResClass/kotlindictionarymultiplatform/composeapp/generated/resources/Res.kt]
19+
ktlint = disabled
20+
21+
[composeApp/src/wasmJsMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/main.kt]
22+
ktlint = disabled
23+
24+
[composeApp/build/generated/compose/resourceGenerator/kotlin/commonMainResourceAccessors/kotlindictionarymultiplatform/composeapp/generated/resources/Drawable0.commonMain.kt]
25+
ktlint = disabled

composeApp/src/desktopMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/main.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@file:Suppress("ktlint")
12
package com.developersbreach.kotlindictionarymultiplatform
23

34
import androidx.compose.ui.window.Window

composeApp/src/iosMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/MainViewController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package com.developersbreach.kotlindictionarymultiplatform
22

33
import androidx.compose.ui.window.ComposeUIViewController
44

5-
fun MainViewController() = ComposeUIViewController { App() }
5+
fun mainViewController() = ComposeUIViewController { App() }

0 commit comments

Comments
 (0)