Created
February 1, 2021 15:13
-
-
Save break2k/0dabd9b25ae581f0d705209c118ef54c to your computer and use it in GitHub Desktop.
Example of .swiftlint.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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