How to Automatically Fix Your Code Style With Ktlint - Android Studio Tutorial

preview_player
Показать описание
In this video you'll learn how you can use ktlint to automatically check and format your code to follow all your coding guidelines.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:

Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!

Join this channel to get access to perks:

Join my Discord server:

You like my free content? Here you can buy me a coffee:
Рекомендации по теме
Комментарии
Автор

best!! falling in love with every tutorials of yours

aviksutar
Автор

Oh yes. Ktlint is awesome. Great video as always, Phillip

dotneko
Автор

Beautiful Explanation.
Do you have playlist for beginners but not soon beginners to learn from
Just saw your channel first time today and subscribed straight after this video

smarthashi
Автор

Reminds me of Police who maintain order, KtLint would be ideal to stop my code running berserk. Thanks for sharing.

tonnie
Автор

Perfect! It's really simple! Philipp, thank you!!!

minds_clear_._
Автор

Why don't you use a more general solution, for example, detekt? It shows problems right in the IDE without build, has its own rules, can generate reports and can be added in Gradle build.

olegleonov
Автор

so useful video, I will definitely use it in my project

amirhosseinghafoorian
Автор

Wonderful stuff philipp Love from India

lakshminarayanacharan
Автор

How we did it when I worked with a team is that we agreed upon a code formatting style we all liked and then one of us configured it in android studio in the code auto-formatting options and then he shared the config file with the rest of the team and we imported it. Then you turn on auto formatting on save, or just get used to using ctrl+alt+L and there you go.

BapeRuLLZ
Автор

Next SonarQube @Philipp 👍🏻, thank you for another good content.

maximooze
Автор

Great tutorial Philipp !, but there are somethings that are different now, could you do an updated video please?, that would be awesome, Thanks in advanced!

leosvxy
Автор

It was a great guide,
Can you make one set-up guide for SonarQube for SonarLint.

dharamveergupta
Автор

Ktlint is great! how to use it across all modules for the gradle project?

marlonlom
Автор

Hi Philip ... I am a subscriber of your paid courses ... The content you add are amazing and valuable and I love it. I want to request a content We use git with android studio right via terminal and via UI interface .... can you show all the stuff that you can do with the UI in android studio git functions(Not via terminal) .... there are no source materials on this on internet .... Thank you

masti
Автор

Thank you for this video. I want to know what to do to make ktlint run on a specific buildType (for example debug BuildType) and having as a result only one report "KtlintDebugSourceSetCheck" ?

AhmedBenFadhel
Автор

Hi, could you make a video on how to cache images that were retrieved from a network request.

abdulraafay
Автор

Philipp, thank you very much. I really enjoy your videos. Do not stop, please. And why did you stop to make android news videos?

alexandervlasik
Автор

Is there a way to get this to work if you refactor change the name of the source directory 'java' to 'kotlin' ? As it is now the formatting only works if the sub folder's name is java

ewomer
Автор

All your video are belong to us. But seriously, great video.

AnotherneTime
Автор

Philipp, can you please share how to set ktlint for specific folder or path only? I tried with in Android block

sourceSets {
main {
java.srcDirs = ['src/main/java']
res.srcDirs = ['src/main/res']
manifest.srcFile
}
}

but when i ran ktlint, it still by default runs for AndroidTests, and Test folder. Any ideas?

CHIchangching
welcome to shbcf.ru