Skip to content

Commit

Permalink
Fix ktlint issues
Browse files Browse the repository at this point in the history
Turns out experimental:function-signature is a feature of ktlint 0.46.+
which is something we can not use yet since the gradle plugin we're
using does not support it yet, relevant issue here:
JLLeitschuh/ktlint-gradle#589

This also required to downgrade to the gradle plugin ktlint version
0.9.1 from 0.10.0 so that the IDE hints do not show different rules as
well.
  • Loading branch information
StylianosGakis committed Aug 18, 2022
1 parent a8acfa2 commit 91ff616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end_of_line = lf
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

disabled_rules = experimental:enum-entry-name-case, experimental:function-signature, filename, annotation
disabled_rules = experimental:enum-entry-name-case, filename, annotation

[*.graphql]
indent_size = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ fun Scaffold(
@Composable
@UiComposable
private fun ScaffoldLayout(
content: @Composable @UiComposable (PaddingValues) -> Unit,
bottomAnchoredContent: @Composable @UiComposable () -> Unit,
content:
@Composable
@UiComposable
(PaddingValues) -> Unit,
bottomAnchoredContent:
@Composable
@UiComposable
() -> Unit,
) {
SubcomposeLayout { constraints ->
val layoutWidth = constraints.maxWidth
Expand Down

0 comments on commit 91ff616

Please sign in to comment.