Oh yes. Ktlint is awesome. Great video as always, Phillip
@olegleonov13102 жыл бұрын
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.
@Zefanya-Teki2 жыл бұрын
What are the downsides of using detekt straight in the IDE? We use it at work, but we only run it manually (usually before comitting)
@amrel-madah52772 жыл бұрын
@@Zefanya-Teki U can use pre-commit or pre-pish as a githook to run that check automatically before every commit or push
@Zefanya-Teki2 жыл бұрын
@@amrel-madah5277 Thanks :)
@kotl49312 жыл бұрын
detekt has a wrapper for ktlint , it also allow to auto-correct if enabled .the advantage of using the wrapper is that you can see all the formatting rules in config.yaml instead of jumping to the reports files
@aviksutar Жыл бұрын
best!! falling in love with every tutorials of yours
@tonnie70792 жыл бұрын
Reminds me of Police who maintain order, KtLint would be ideal to stop my code running berserk. Thanks for sharing.
@lakshminarayanacharan837 Жыл бұрын
Wonderful stuff philipp Love from India
@BapeRuLLZ2 жыл бұрын
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.
@smart1hashi2 жыл бұрын
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
Next SonarQube @Philipp 👍🏻, thank you for another good content.
@leosvxy Жыл бұрын
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!
@tonnie70792 жыл бұрын
Any idea on how to do it using Kotlin DSL
@moumnalmunawy18062 жыл бұрын
Why people use sealed class for navigation instead of enum?
@rhen46102 жыл бұрын
He already made his statement about that on another video
@purplehazer4172 жыл бұрын
enum on steroids
@UpLiftingU0072 жыл бұрын
How you will pase any paramter with enums?
@fernando_s972 жыл бұрын
because of parameters
@moumnalmunawy18062 жыл бұрын
@@UpLiftingU007 you can via the constructor
@amirhosseinghafoorian9985 Жыл бұрын
so useful video, I will definitely use it in my project
@taar12 жыл бұрын
Is this an official tool from JetBrains or Google or private third party?
@Adam00012 жыл бұрын
On time 😊, Thanks Philipp 💐
@AhmedBenFadhel Жыл бұрын
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" ?
@dharamveergupta13052 жыл бұрын
It was a great guide, Can you make one set-up guide for SonarQube for SonarLint.
@ewomer1002 жыл бұрын
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
@Daaaaaaavid Жыл бұрын
"Task with path 'ktlintFormat' not found in project"?
@alexandervlasik71782 жыл бұрын
Philipp, thank you very much. I really enjoy your videos. Do not stop, please. And why did you stop to make android news videos?
@PhilippLackner2 жыл бұрын
Thanks! In the past months there weren't any major changes worth to make a whole video about I felt like. I'll make them when something cool changes :)
@easybusinessou2 жыл бұрын
Thanks
@CHIchangching2 жыл бұрын
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 'src/main/AndroidManifest.xml' } } but when i ran ktlint, it still by default runs for AndroidTests, and Test folder. Any ideas?
@safionweb2 жыл бұрын
Great content 👑
@Nick-cx4rs4 ай бұрын
Why my gradle doesnt find this task. Also not finding clean, assemble, etc. Task with path 'preBuild' not found in root project
@marlonlom2 жыл бұрын
Ktlint is great! how to use it across all modules for the gradle project?
@abdulraafay52262 жыл бұрын
Hi, could you make a video on how to cache images that were retrieved from a network request.
@simonwambua3710 Жыл бұрын
Whats the difference in usage between ktlint and spotless?
@masti4372 жыл бұрын
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
@Another0neTime2 жыл бұрын
All your video are belong to us. But seriously, great video.
@ArunKumar-vu5bd2 жыл бұрын
When you prebuild ktlint error every time, doesn't it increase the build time?
@sachinmalik95742 жыл бұрын
yes it does, other alternative is to run it precommit
@PhilippLackner2 жыл бұрын
Yep that works too 👍
@vitalijuskolinko901111 ай бұрын
Thank you, my master :) Nice plugin, but it works a little bit buggy - sometimes it doesn't show changes in COMMIT section after I run ./gradlew-ktlintFormat. Need to restart Android Studio :)
@e4basil2 жыл бұрын
nicely explained
@mandroidx14742 жыл бұрын
How about sonarLint?
@Leon-un2ii2 жыл бұрын
Could you also make a tutorial on how to make an app lock screen with a password or pin, please?
@stanleykou56432 жыл бұрын
Awesome!
@mustafaammar5512 жыл бұрын
very cool vedeo you are the best
@pr0adam2 жыл бұрын
sometimes android studio wont even know the lazy list syntax if you dont do the wildcard import lols
@purplehazer4172 жыл бұрын
thanks, just thought about that :)
@medium010 Жыл бұрын
./gradlew: Permission denied
@PREATOR_12 жыл бұрын
works gj
@renzcarlosalanga19702 жыл бұрын
detekt is better in static code analysis
@wiiznokes22372 жыл бұрын
There is a shortcut for doing that automaticaly i think
@PhilippLackner2 жыл бұрын
And who wants to go into every file manually and apply that shortcut? 😂
@flavouredflight86282 жыл бұрын
ah yes! ctrl+alt+l
@wiiznokes22372 жыл бұрын
@@flavouredflight8628 Yes! And you can select a directory, otherwise CTRL + SHIFT + ALT + L
@simpleuxapps87592 жыл бұрын
@@wiiznokes2237 That shortcut handles only formatting issues. It dosen't addresses other lint issues, such as unused imports.
@salvadorjohndeniel2 жыл бұрын
@@simpleuxapps8759 It also removes unused imports
@sheikhs4896 Жыл бұрын
In an Android developer i also want to work in Germany..
@sergioqcostas2 жыл бұрын
I love your videos but hate every lint out there, lol.
@alnoormajzoob25072 жыл бұрын
I have learned a lot of because of u, thanks 🙏. Can we msg at whatsapp?