Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add project-wide suppression for UnexpectedIndent rule #70

Closed
SUPERCILEX opened this issue Aug 4, 2017 · 2 comments
Closed

Add project-wide suppression for UnexpectedIndent rule #70

SUPERCILEX opened this issue Aug 4, 2017 · 2 comments

Comments

@SUPERCILEX
Copy link

This one issue is blocking me from adopting ktlint. I get that everything should be 4 spaces, but sometimes that just looks terrible. Code that makes ktlint happy:

Snackbar.make(
        activity.findViewById<View>(R.id.root),
        R.string.no_connection,
        Snackbar.LENGTH_LONG)
        .show()

Code that makes developers happy:

Snackbar.make(activity.findViewById<View>(R.id.root),
              R.string.no_connection,
              Snackbar.LENGTH_LONG)
        .show()
@shyiko
Copy link
Collaborator

shyiko commented Oct 11, 2017

Supported in 0.10.0.

.editorconfig

[*.{kt,kts}]
indent_size=unset

@shyiko shyiko closed this as completed Oct 11, 2017
@SUPERCILEX
Copy link
Author

@shyiko Awesome!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants