Skip to content

Commit 23a2674

Browse files
Also set the default value of extendedIndentOfParameters to false if there's no config file
### What's done: * The default value of `extendedIndentOfParameters` is now `false` even if the YAML config file is missing. * Related to #1312 gh-1312.
1 parent 9e3b5cb commit 23a2674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/IndentationConfig.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal class IndentationConfig(config: Map<String, String>) : RuleConfiguratio
1515
/**
1616
* If true, in parameter list when parameters are split by newline they are indented with two indentations instead of one
1717
*/
18-
val extendedIndentOfParameters = config["extendedIndentOfParameters"]?.toBoolean() ?: true
18+
val extendedIndentOfParameters = config["extendedIndentOfParameters"]?.toBoolean() ?: false
1919

2020
/**
2121
* If true, if first parameter in parameter list is on the same line as opening parenthesis, then other parameters

0 commit comments

Comments
 (0)