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

КОМЕНТАРІ • 57

  • @nilstoned7593
    @nilstoned7593 2 роки тому

    Thanks Ravi bhai. Bohot clearly samjhaya aapne 👍🏼

  • @vaibhavigokhale
    @vaibhavigokhale 2 роки тому +3

    Awesome Ravi! I just like the way you teach in step by step approach. Thanks a lot. Hindi tutorials rock!

    • @CodeCat15
      @CodeCat15  2 роки тому

      Thanks a ton, am glad this was helpful Vaibhavi.

  • @krishnasadhu4840
    @krishnasadhu4840 2 роки тому

    best explanation

  • @javedmultani2491
    @javedmultani2491 2 роки тому +1

    Everything explained is the reality. NICE MAN :)

    • @CodeCat15
      @CodeCat15  2 роки тому

      Am glad you liked it, plz feel free to ask questions on this topic and do share the video with your iOS group

  • @madhurjain90
    @madhurjain90 3 роки тому +1

    Really the way you explain things hats off.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thanks Madhur I am glad that this video was helpful

  • @sushpraj4068
    @sushpraj4068 Рік тому +1

    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

    • @CodeCat15
      @CodeCat15  Рік тому

      I am glad this video was helpful, do share among your iOS group and always feel free to ask questions

  • @rameshpchavan
    @rameshpchavan 2 роки тому

    Thanks

  • @umairkhan4982
    @umairkhan4982 2 роки тому +1

    This series was really helpful for me, thanks

    • @CodeCat15
      @CodeCat15  2 роки тому +1

      Glad this was a helpful, feel free to ask questions and do share the channel with your iOS group

  • @nidhitiwari634
    @nidhitiwari634 3 роки тому +1

    Thanku so much for this vedio

    • @CodeCat15
      @CodeCat15  3 роки тому

      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

  • @shashankmishra5329
    @shashankmishra5329 3 роки тому +2

    Thank you for this video.!

    • @CodeCat15
      @CodeCat15  3 роки тому

      I am glad this video helped Shashank, please do share this with your iOS group on WhatsApp or Facebook

    • @7cipher399
      @7cipher399 3 роки тому

      Nice Shashank

  • @entertainmentwithar2459
    @entertainmentwithar2459 3 роки тому +1

    Hello,,,Sir make a video on enum, properties,Methods and subscript

  • @shadabhaidari6052
    @shadabhaidari6052 2 роки тому

    Very helpful video. But how to generate report in html format of swiftlint plz make a video for that.

  • @rameshK-yx8nz
    @rameshK-yx8nz 3 місяці тому +1

    Thanks for this tutorials Ravi. Can you please recommend few important rules for the best practices.

    • @CodeCat15
      @CodeCat15  Місяць тому

      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

  • @puneetpal1466
    @puneetpal1466 3 роки тому +1

    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

    • @CodeCat15
      @CodeCat15  3 роки тому

      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

  • @kartiktyagi898
    @kartiktyagi898 2 роки тому

    "shwift" btw nice video

  • @gulshanbajwa4405
    @gulshanbajwa4405 3 роки тому +1

    Thanku Brother

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Welcome to the channel Gulshan and thank you 😊 do share the video with your ios group

    • @gulshanbajwa4405
      @gulshanbajwa4405 3 роки тому +1

      @@CodeCat15 sure brother

  • @Jamisyed786
    @Jamisyed786 2 роки тому

    Please make videos on debuging as pro. explore xcode debuging features on Xcode.

  • @sat_talk
    @sat_talk 2 роки тому

    bhai your teaching concept is awesome. Android ke liye koi video hai kya?

  • @arshadshaik2578
    @arshadshaik2578 9 місяців тому

    I want to exclude few project folders for example: login folder, how can i do that ? can you please suggest

  • @gulshanbajwa4405
    @gulshanbajwa4405 3 роки тому +2

    Brother also make a video on sinch video or voice calling thnku

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Thanks for making a video request Gulshan i will surely work on it

  • @sumitrathore8446
    @sumitrathore8446 3 роки тому +2

    Please make video on profiler with simple examples

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Noted 👍

    • @sumitrathore8446
      @sumitrathore8446 3 роки тому

      @@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

  • @gulshanbajwa4405
    @gulshanbajwa4405 3 роки тому +2

    Brother make a video on applogic chat customer or vendor side

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Hello Gulshan, welcome to the channel you want the architecture of chat like data flow and diagrams or the entire codebase?

  • @EngineeriOSwala
    @EngineeriOSwala 3 роки тому +2

    please make on Moya Pod with Swinject Pod using MVVM in swift.

    • @CodeCat15
      @CodeCat15  3 роки тому +2

      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

    • @EngineeriOSwala
      @EngineeriOSwala 3 роки тому +1

      @@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.

    • @CodeCat15
      @CodeCat15  3 роки тому

      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

  • @ashishchauhan6888
    @ashishchauhan6888 3 роки тому

    make video on push notification...
    and advance json parsing...

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      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

  • @EngineeriOSwala
    @EngineeriOSwala 3 роки тому +1

    also make videos on Coordinator Pattern in swift also add Tabbars with Coordinator Pattern

    • @CodeCat15
      @CodeCat15  3 роки тому +2

      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

    • @EngineeriOSwala
      @EngineeriOSwala 3 роки тому +1

      @@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

    • @CodeCat15
      @CodeCat15  3 роки тому

      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.

  • @user-dc4rc4zc2u
    @user-dc4rc4zc2u Рік тому +1

    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

    • @CodeCat15
      @CodeCat15  Рік тому

      sure, can you please elaborate the issue for me? Thanks

  • @asherazeem3282
    @asherazeem3282 3 роки тому +2

    Cmd + shift + period( which command)

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Cmd + shift + . Is used to unhide hidden files of the system

  • @niravzalavadiya
    @niravzalavadiya 3 роки тому +1

    swiftlint File also uses in App store build ya other build..

    • @CodeCat15
      @CodeCat15  3 роки тому

      Hey Nirav, welcome to the channel, I am not sure if I follow can you please elaborate your question

    • @niravzalavadiya
      @niravzalavadiya 3 роки тому

      @@CodeCat15 is swiftlint framework space uses in final build means this framework size increases my build size or not

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      @@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