Enforce Swift best practice with Swiftlint (Hindi Tutorial)
Вставка
- Опубліковано 15 лип 2024
- Write clean code in swift using Swiftlint which is an open-source library that helps developers enforce best practices and write clean code in their iOS project. This tutorial contains the detail on how you can integrate swiftlint in your iOS project and improve your code quality.
In this video we will be using cocoapods to install the swiftlint library and along with that we will also disable a rule using the swiftlint yaml configuration
Give are the chapters covered in this video
0:00 introduction
0:34 developer issues and facts
1:34 codecat15 example
2:24 what is Swiftlint
3:58 swiftlint demo
4:15 installing swiftlint using cocoapods
6:11 adding run script for swiftlint
7:34 swiftlint in action
11:03 disable a rule using .swiftlint.yml
12:41 disable other pod warnings
13:10 more details on .swiftlint.yml file
14:09 conclusion
15:02 thank you note :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
🔗Click on the link to subscribe: ua-cam.com/users/codecat?sub...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
############################################
Connect with me on social media
📧: codecat15@gmail.com
🐦: / codecat15
Facebook: / code.cat.792
Github: github.com/codecat15
###########################################
#swiftlint #swiftlintcocoapod #integrateSwiftLintWithXcode
Thanks Ravi bhai. Bohot clearly samjhaya aapne 👍🏼
Awesome Ravi! I just like the way you teach in step by step approach. Thanks a lot. Hindi tutorials rock!
Thanks a ton, am glad this was helpful Vaibhavi.
best explanation
Everything explained is the reality. NICE MAN :)
Am glad you liked it, plz feel free to ask questions on this topic and do share the video with your iOS group
Really the way you explain things hats off.
Thanks Madhur I am glad that this video was helpful
Hi Ravi, what a tutorial !! . I referred so many articles and videos . I used to have atleast one or 2 questions/topics without answers/ uncovered . u explained it so well. I am going to try swiftlint now
I am glad this video was helpful, do share among your iOS group and always feel free to ask questions
Thanks
This series was really helpful for me, thanks
Glad this was a helpful, feel free to ask questions and do share the channel with your iOS group
Thanku so much for this vedio
I am glad this video was helpful Nidhi, do feel free to ask questions and do share with your iOS group on WhatsApp or Facebook
Thank you for this video.!
I am glad this video helped Shashank, please do share this with your iOS group on WhatsApp or Facebook
Nice Shashank
Hello,,,Sir make a video on enum, properties,Methods and subscript
Very helpful video. But how to generate report in html format of swiftlint plz make a video for that.
Thanks for this tutorials Ravi. Can you please recommend few important rules for the best practices.
Swiftlint has a lot of rules and the option for customizing the rules, it all depends on what your team decides. By default it has all the good practices active but you can turn them off or read the lint documentation to set any rules active
I likes the way you explains all topics :)
I have a request you to make a video on Socket integration in swift.
Will wait for the same
Thanks in advance
I will try to cover that soon, as of now I am trying to wrap up basics of combine to get devs started with combine and then probably move on to other topics. Thank you for making the request I will add it in my backlog
"shwift" btw nice video
Thanku Brother
Welcome to the channel Gulshan and thank you 😊 do share the video with your ios group
@@CodeCat15 sure brother
Please make videos on debuging as pro. explore xcode debuging features on Xcode.
bhai your teaching concept is awesome. Android ke liye koi video hai kya?
I want to exclude few project folders for example: login folder, how can i do that ? can you please suggest
Brother also make a video on sinch video or voice calling thnku
Thanks for making a video request Gulshan i will surely work on it
Please make video on profiler with simple examples
Noted 👍
@@CodeCat15 i have checked on google there is one .rb file which provide us unused variable in our code
But i want to check which variable is not getting deallocating so how to do that
Please make a video on Hindi language please please please
Thanks for support
Brother make a video on applogic chat customer or vendor side
Hello Gulshan, welcome to the channel you want the architecture of chat like data flow and diagrams or the entire codebase?
please make on Moya Pod with Swinject Pod using MVVM in swift.
Have you seen my HttpUtility, I promise its way simpler than any third party you will ever use, the idea behind that utility was to inspire devs and to show them how easy it is to write code without third party tools, and in the API series I have used that utility a lot to parse JSON for various scenarios do check that out once and let me know what you think, Swinject video request noted
@@CodeCat15 I agree with your point but when we use MOYA kind of library it’s easy to remove dependency injection and also easy to write test cases and also Moya give fake data test as sampleData.
You can write test cases for anything to be honest as long as the code is loosely coupled, so having a specific library for writing tests is not needed, for mocking we can use protocol approach or create fake classes to get the job done. The goal is to use less dependency on third parties but then if moya solves a specific use case i will be much happy to know what that is, also can you elaborate on removing dependency injection point please I would like to know more on that
make video on push notification...
and advance json parsing...
Hello Ashish, welcome to the channel, push notification hopefully next year, in the api series i did share some of the tricks of json parsing, check out the api series playlist for the same and if something is missing then please let me know I will be happy to make a video for the same, do share this video with your iOS group
api series playlist: ua-cam.com/play/PLb5R4QC2DtFuXr4177KQ2lIXOkqwq97a4.html
also make videos on Coordinator Pattern in swift also add Tabbars with Coordinator Pattern
Hey Maxiii Code, welcome to the channel I will surely try making a video on it, but to be honest I have not used Coordinator pattern in my projects unless you want to have a specific container handling all that navigation flow, in most of the cases its fine to leave that code as is but I understand sometimes when the project is facebook size you would surely need a container where you manage the navigation flow of your app
@@CodeCat15 thank you sir indeed you are right but nowadays most of them wants to use this pattern and handle their app flow instead of writing pushViewController in every controller and this pattern is highly recommended with MVVM
It’s recommended but not required, i once read in the book that unwanted usage of patterns should be avoided unless there’s an absolute need for it, its more like spending money on things we don’t need but good to have, but yes this pattern is in my list and it truly does a fantastic job, now the other side of this is how we will use this pattern in swiftui? I recently read a wonderful article around it and i will surely share that in the video.
Hello Ravi , i am not able to avoid pod while i had given condition in .yml file , can you please suggest and help me out
sure, can you please elaborate the issue for me? Thanks
Cmd + shift + period( which command)
Cmd + shift + . Is used to unhide hidden files of the system
swiftlint File also uses in App store build ya other build..
Hey Nirav, welcome to the channel, I am not sure if I follow can you please elaborate your question
@@CodeCat15 is swiftlint framework space uses in final build means this framework size increases my build size or not
@@niravzalavadiya I don't think so I have been using this for a very long period of time and it has not caused any dramatic increase in the build size, however, if that's one of your biggest concern then when you make the build then you can uninstall the pod while you are shipping your app to the app store and then re-install it but don't think so that would be needed. Let me know if that answers your question and if not then please ask more I will be happy to answer it