How to Setup SwiftLint on XCode 14

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Today we learn how to setup Swiftlint in our iOS project to foster a clean and consistent codebase.
    Resources:
    1. Swiftlint Docs: github.com/realm/SwiftLint
    2. SwiftLint Rules realm.github.io/SwiftLint/rul...
    Say Hi on Social Media:
    LinkedIn: / ​​
    Instagram: its_macco?...
    Twitter: / its_macco
    Project Setup 00:00
    Install Swiftlint 03:03
    Fix Lint Issues 04:39
    Swiftlint Config 08:49
    Disable Rule 14:54
    What Next 19:55
  • Наука та технологія

КОМЕНТАРІ • 10

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

    thanks sooo much this was really helpful am waiting for the next vid

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

    Useful video. Thanks for sharing 😃👍

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

    best explaining

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

    3:07
    your terminal is Colorful and it was guiding u with placeholders
    i want same in my Mac
    will you make one video on this ??

  • @user-gv1jc4xp9u
    @user-gv1jc4xp9u Рік тому

    Where did you added your rules file and how you have given that path ??

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

    Hi, I'm getting this error "Command PhaseScriptExecution failed with a nonzero exit code" when I add the script and built the project.

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

    how did you get your terminal to be that cool

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

      I answered your question here. 😊
      ua-cam.com/video/Hd1tCGY7st8/v-deo.html

  • @ipaktulane4748
    @ipaktulane4748 3 місяці тому

    disabled_rules:
    - trailing_whitespace
    - force_cast
    - force_try
    - unused_setter_value
    - file_lenght
    - valid_ibinspectable
    - shorthand_operator
    - file_header
    - discarded_notification_center_observer
    - empty_enum_arguments
    - prohibited_super_call
    - missing_docs
    - unneeded_override
    opt_in_rules:
    - empty_count
    - explicit_init
    - yoda_condition
    - closure_end_indentation
    - closure_spacing
    - fatal_error_message
    - first_where
    - operator_usage_whitespace
    - overriden_super_call
    - redundant_nil_coalescing
    - multiline_parameters
    - vertical_parameter_alignment_on_call
    - joined_default_parameter
    - unneeded_parenthesis_in_closure_argument
    excluded:
    - Carthage/
    - Pods/
    - Generated/
    # Rule to enforce camelCase for variable and constant names
    identifier_name:
    min_length: 1
    max_length:
    warning: 50
    error: 60
    excluded: ["id", "url"] # Exclude certain identifiers from the rule
    # Rule to limit the length of function bodies
    function_body_length:
    warning: 100
    error: 200