Skip to content

Commit 9cfe1ec

Browse files
authored
Note the default Ktlint style sections in docs (#2092)
2 parents 231e215 + abf994e commit 9cfe1ec

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plugin-gradle/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ spotless {
418418
.editorConfigOverride(
419419
mapOf(
420420
"indent_size" to 2,
421+
// intellij_idea is the default style we preset in Spotless, you can override it referring to https://pinterest.github.io/ktlint/latest/rules/code-styles.
422+
"ktlint_code_style" to "intellij_idea",
421423
)
422424
)
423425
.customRuleSets(

plugin-maven/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
419419
<editorConfigOverride> <!-- optional -->
420420
<ij_kotlin_allow_trailing_comma>true</ij_kotlin_allow_trailing_comma>
421421
<ij_kotlin_allow_trailing_comma_on_call_site>true</ij_kotlin_allow_trailing_comma_on_call_site>
422+
<!-- intellij_idea is the default style we preset in Spotless, you can override it referring to https://pinterest.github.io/ktlint/latest/rules/code-styles. -->
423+
<ktlint_code_style>intellij_idea</ktlint_code_style>
422424
</editorConfigOverride>
423425
<customRuleSets> <!-- optional -->
424426
<value>io.nlopez.compose.rules:ktlint:0.3.3</value>

0 commit comments

Comments
 (0)