Last active
April 20, 2019 14:01
-
-
Save elpsk/78e0e032332f89898ff03c81ce9fd481 to your computer and use it in GitHub Desktop.
My swift rules for .swiftlint.yml
This file contains 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
analyzer_rules: | |
- unused_import | |
- unused_private_declaration | |
opt_in_rules: | |
- array_init | |
- attributes | |
- closure_end_indentation | |
- closure_spacing | |
- collection_alignment | |
- contains_over_first_not_nil | |
- empty_count | |
- empty_string | |
- empty_xctest_method | |
- explicit_init | |
- extension_access_modifier | |
- fallthrough | |
- fatal_error_message | |
- first_where | |
- identical_operands | |
- joined_default_parameter | |
- let_var_whitespace | |
- last_where | |
- literal_expression_end_indentation | |
- nimble_operator | |
- number_separator | |
- object_literal | |
- overridden_super_call | |
- override_in_extension | |
- pattern_matching_keywords | |
- prohibited_super_call | |
- quick_discouraged_call | |
- quick_discouraged_focused_test | |
- quick_discouraged_pending_test | |
- redundant_nil_coalescing | |
- redundant_type_annotation | |
- single_test_class | |
- static_operator | |
- unavailable_function | |
- unneeded_parentheses_in_closure_argument | |
- untyped_error_in_catch | |
- vertical_parameter_alignment_on_call | |
- vertical_whitespace_closing_braces | |
- vertical_whitespace_opening_braces | |
- anyobject_protocol | |
- private_action | |
- private_outlet | |
- trailing_whitespace | |
disabled_rules: | |
- syntactic_sugar | |
trailing_semicolon: error | |
empty_count: error | |
closing_brace: error | |
opening_brace: error | |
return_arrow_whitespace: error | |
statement_position: error | |
colon: error | |
comma: error | |
force_try: error | |
force_cast: error | |
vertical_whitespace: error | |
vertical_whitespace_closing_braces: error | |
vertical_whitespace_opening_braces: error | |
todo: error | |
identifier_name: | |
excluded: | |
- id | |
number_separator: | |
minimum_length: 5 | |
excluded: # paths to ignore during linting. overridden by `included`. | |
- Pods | |
- fastlane | |
line_length: | |
- 120 | |
- 140 | |
variable_name_min_length: | |
- 2 # warning | |
- 1 # error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment