pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.23k stars 512 forks source link

EditorConfig rule to ignore functions #607

Closed AndreSand closed 5 years ago

AndreSand commented 5 years ago

Hi, is it possible to add a rule to .editorconfig to ignore functions?

I see that it is a standard rule to separate by line each function parameter, but I would like to have function parameters in one line. Thanks.

When class/function signature doesn't fit on a single line, each parameter must be on a separate line https://github.com/pinterest/ktlint#standard-rules

Tapchicoma commented 5 years ago

You should disable "parameter-list-wrapping" rule.