Formatting Kotlin Code with ktlint - How to Add ktlint to Your Kotlin Project

Опубликовано: 13 Октябрь 2024
на канале: goobar
13,108
202

In this tutorial, we're covering formatting Kotlin code with ktlint. Ktlint is a command line tool that includes a linter and formatter for your Kotlin code.

Using these tools, we can help ensure our Kotlin code adheres to the Kotlin style guide without having tedious debates about how to format our code.

Blog Post: https://goobar.io/2019/07/25/adding-k...

0:28 What is ktlint?
0:52 Sample Output
1:21 Linting & Formatting
2:18 Why is ktlint helpful?
3:30 Integrating ktlint

Have you tried out ktlint? What do you think? Have any questions? Let me know in the comments.
--

🔔 Subscribe to My Channel ➡️   / @goobar  

💡More Kotlin Resources:
📖Kotlin for Android Developers
https://transactions.sendowl.com/stor...

🖥JetBrains certified online course: Kotlin for Android Developers
https://transactions.sendowl.com/stor... (affiliate link)

📚More Kotlin Books
Kotlin In Action - https://amzn.to/2DJxlsL (affiliate link)
https://www.amazon.com/shop/n8ebel?li... (affiliate link)
---

🙂 Follow Me Online
twitter ➡   / n8ebel  
website ➡ https://goobar.io
instagram ➡   / n8ebel  
youtube ➡    / @goobar  

ℹsome links direct to affiliate sites