You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to fix issues for example for ktlint_standard_string-template-indent and not ktlint_standard_indent ?
Expected Behavior
I'd like to get fixed issues of more specific rule which depends on some parent rule.
I've tried also use baseline, but it seems like ./ktlint --baseline=baseline.txt -F is fixing everything even the stuff already present in baseline.txt
Observed Behavior
Fails due to ktlint_standard_indent = disabled config
or I have to enable ktlint_standard_indent which is fixing unwanted issues
I'd like to get fixed issues of more specific rule which depends on some parent rule.
The idea of the parent rules is to reduce internal complexity in ktlint. Per parent-child relation it is determined whether the parent rule must be loaded or not. In case of a mandatory relation, like in this example, there is (or should be) a good reason for it.
I've tried also use baseline, but it seems like ./ktlint --baseline=baseline.txt -F is fixing everything even the stuff already present in baseline.txt
Yes, see #1072 for more backgrounds why it is not trivial to fix.
Observed Behavior
Fails due to ktlint_standard_indent = disabled config
or I have to enable ktlint_standard_indent which is fixing unwanted issues
Ideally, you use the default configuration of a code style. Each of those configuration consist of a balanced set of rules and default settings. By disabling any rule, or changing a default value, you leave the paved road and go into dark territories. If you can find a configuration that works for you, that is great. If the indent rules is fixing unwanted issues, you either have to create issues for that or enable the rule and accept that some indentation is not optional from your viewpoint.
How to fix issues for example for
ktlint_standard_string-template-indent
and notktlint_standard_indent
?Expected Behavior
I'd like to get fixed issues of more specific rule which depends on some parent rule.
I've tried also use baseline, but it seems like
./ktlint --baseline=baseline.txt -F
is fixing everything even the stuff already present in baseline.txtObserved Behavior
ktlint_standard_indent = disabled
configktlint_standard_indent
which is fixing unwanted issuesYour Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: