From dcbbf4cc533d4e63398c42361fcbee723225bba2 Mon Sep 17 00:00:00 2001 From: Matt Rubin Date: Fri, 12 Apr 2019 13:12:42 -0400 Subject: [PATCH] [Lint] Enable various new SwiftLint rules --- .swiftlint.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index fa28dc3..c15d0f8 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -8,24 +8,59 @@ disabled_rules: - type_body_length opt_in_rules: + - array_init - attributes - closure_end_indentation - closure_spacing + - collection_alignment - conditional_returns_on_newline + - contains_over_first_not_nil - convenience_type + - discouraged_object_literal + - discouraged_optional_boolean + - discouraged_optional_collection - empty_count + - empty_string + - empty_xctest_method + - explicit_enum_raw_value - explicit_init + - extension_access_modifier + - fallthrough - fatal_error_message - first_where + - function_default_parameter_at_end + - identical_operands - implicitly_unwrapped_optional + - joined_default_parameter + - last_where + - legacy_random + - literal_expression_end_indentation + - lower_acl_than_parent - modifier_order - multiline_arguments + - multiline_function_chains + - multiline_literal_brackets + - nslocalizedstring_key - overridden_super_call + - override_in_extension + - private_action - private_outlet - prohibited_super_call + - quick_discouraged_call + - quick_discouraged_focused_test + - quick_discouraged_pending_test - redundant_nil_coalescing + - sorted_first_last + - strict_fileprivate - switch_case_on_newline + - toggle_bool + - unavailable_function + - untyped_error_in_catch + - unused_import + - unused_private_declaration - vertical_parameter_alignment_on_call + - xct_specific_matcher + - yoda_condition excluded: - Carthage