Skip to content

Instantly share code, notes, and snippets.

@break2k
Created February 1, 2021 15:13
Show Gist options
  • Save break2k/0dabd9b25ae581f0d705209c118ef54c to your computer and use it in GitHub Desktop.
Save break2k/0dabd9b25ae581f0d705209c118ef54c to your computer and use it in GitHub Desktop.
Example of .swiftlint.yml
whitelist_rules:
- closing_brace
- colon
- comma
- control_statement
- custom_rules
- empty_count
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- mark
- opening_brace
- operator_whitespace
- private_unit_test
- redundant_nil_coalesing
- redundant_string_enum_value
- return_arrow_whitespace
- syntactic_sugar
- trailing_semicolon
- void_return
excluded:
- Pods
colon:
apply_to_dictionaries: false
custom_rules:
equal_sign_whitespace:
message: "Expected only one space before and after ="
regex: "(([ ]{2,}=)|(=[ ]{2,}))"
print:
message: "Prefer Xcode's breakpoint Debugger Commands or LLDB over print statements"
regex: "print\\(.*\\)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment