'How to disable ktlint rule for Missing newline after ":" and Missing newline after ","

Having trouble where to find a specific solution to disable Missing newline after ":" and Missing newline after "," of ktlint rules, when running ktlintCheck in my kotlin codes in Android

This is my code that encounters error:

class MainActivity : BaseActivity(),
   DateSelectionListener, AttachmentsSelectionListener,
   LocationStateListener
{

}

This is what the ktlint requires me to format my code:

class MainActivity : BaseActivity(), DateSelectionListener, AttachmentsSelectionListener, LocationStateListener
{

}

I just wanted to bring the interfaces below one another since bunch of interfaces consumes too much of code line.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source